Mercurial > hg > graal-compiler
comparison src/share/vm/oops/instanceKlass.cpp @ 6038:8bafad97cd26
7158552: The instanceKlsss::_host_klass is only needed for anonymous class for JSR 292 support.
Summary: Change the _host_klass to be conditionally created embedded instanceKlass field.
Reviewed-by: jrose, coleenp, dholmes
author | jiangli |
---|---|
date | Wed, 02 May 2012 13:21:36 -0400 |
parents | 49036505ab5f |
children | d2a62e0f25eb |
comparison
equal
deleted
inserted
replaced
6024:973046802b6f | 6038:8bafad97cd26 |
---|---|
1860 if (ClassUnloading) { | 1860 if (ClassUnloading) { |
1861 klassOop impl = implementor(); | 1861 klassOop impl = implementor(); |
1862 if (impl != NULL) { | 1862 if (impl != NULL) { |
1863 if (!is_alive->do_object_b(impl)) { | 1863 if (!is_alive->do_object_b(impl)) { |
1864 // remove this guy | 1864 // remove this guy |
1865 *start_of_implementor() = NULL; | 1865 *adr_implementor() = NULL; |
1866 } | 1866 } |
1867 } | 1867 } |
1868 } else { | 1868 } else { |
1869 assert(adr_implementor() != NULL, "just checking"); | 1869 assert(adr_implementor() != NULL, "just checking"); |
1870 keep_alive->do_oop(adr_implementor()); | 1870 keep_alive->do_oop(adr_implementor()); |