equal
deleted
inserted
replaced
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 |