Mercurial > hg > graal-compiler
comparison src/share/vm/memory/oopFactory.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 | 8150fa46d2ed |
comparison
equal
deleted
inserted
replaced
6024:973046802b6f | 6038:8bafad97cd26 |
---|---|
126 | 126 |
127 klassOop oopFactory::new_instanceKlass(Symbol* name, int vtable_len, int itable_len, | 127 klassOop oopFactory::new_instanceKlass(Symbol* name, int vtable_len, int itable_len, |
128 int static_field_size, | 128 int static_field_size, |
129 unsigned int nonstatic_oop_map_count, | 129 unsigned int nonstatic_oop_map_count, |
130 AccessFlags access_flags, | 130 AccessFlags access_flags, |
131 ReferenceType rt, TRAPS) { | 131 ReferenceType rt, |
132 KlassHandle host_klass, TRAPS) { | |
132 instanceKlassKlass* ikk = instanceKlassKlass::cast(Universe::instanceKlassKlassObj()); | 133 instanceKlassKlass* ikk = instanceKlassKlass::cast(Universe::instanceKlassKlassObj()); |
133 return ikk->allocate_instance_klass(name, vtable_len, itable_len, | 134 return ikk->allocate_instance_klass(name, vtable_len, itable_len, |
134 static_field_size, nonstatic_oop_map_count, | 135 static_field_size, nonstatic_oop_map_count, |
135 access_flags, rt, CHECK_NULL); | 136 access_flags, rt, host_klass, CHECK_NULL); |
136 } | 137 } |
137 | 138 |
138 | 139 |
139 constMethodOop oopFactory::new_constMethod(int byte_code_size, | 140 constMethodOop oopFactory::new_constMethod(int byte_code_size, |
140 int compressed_line_number_size, | 141 int compressed_line_number_size, |