Mercurial > hg > truffle
diff src/share/vm/oops/instanceKlass.hpp @ 7411:8580f22db905
Merge
author | coleenp |
---|---|
date | Fri, 14 Dec 2012 16:43:37 -0800 |
parents | 30866cd626b0 |
children | 35431a769282 |
line wrap: on
line diff
--- a/src/share/vm/oops/instanceKlass.hpp Fri Dec 14 10:06:52 2012 -0800 +++ b/src/share/vm/oops/instanceKlass.hpp Fri Dec 14 16:43:37 2012 -0800 @@ -538,6 +538,12 @@ } } + // Oop that keeps the metadata for this class from being unloaded + // in places where the metadata is stored in other places, like nmethods + oop klass_holder() const { + return is_anonymous() ? java_mirror() : class_loader(); + } + // signers objArrayOop signers() const { return _signers; } void set_signers(objArrayOop s) { klass_oop_store((oop*)&_signers, s); }