hotspot/src/share/vm/oops/instanceKlass.cpp
changeset 15097 9db149412e0e
parent 14583 d70ee55535f4
child 15099 b31d40895bbb
equal deleted inserted replaced
15096:3db45569f8c0 15097:9db149412e0e
   359   // Null out Java heap objects, although these won't be walked to keep
   359   // Null out Java heap objects, although these won't be walked to keep
   360   // alive once this InstanceKlass is deallocated.
   360   // alive once this InstanceKlass is deallocated.
   361   set_protection_domain(NULL);
   361   set_protection_domain(NULL);
   362   set_signers(NULL);
   362   set_signers(NULL);
   363   set_init_lock(NULL);
   363   set_init_lock(NULL);
       
   364 
       
   365   // We should deallocate the Annotations instance
       
   366   MetadataFactory::free_metadata(loader_data, annotations());
   364   set_annotations(NULL);
   367   set_annotations(NULL);
   365 }
   368 }
   366 
   369 
   367 volatile oop InstanceKlass::init_lock() const {
   370 volatile oop InstanceKlass::init_lock() const {
   368   volatile oop lock = _init_lock;  // read once
   371   volatile oop lock = _init_lock;  // read once