Mercurial > hg > truffle
comparison src/share/vm/oops/instanceKlass.cpp @ 7457:35431a769282
8004823: Add VM support for type annotation reflection
Reviewed-by: dholmes, coleenp
Contributed-by: joel.franck@oracle.com
author | stefank |
---|---|
date | Thu, 20 Dec 2012 10:22:19 +0100 |
parents | f34d701e952e |
children | cc6a617fffd2 |
comparison
equal
deleted
inserted
replaced
7456:7d42f3b08300 | 7457:35431a769282 |
---|---|
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 |