comparison src/share/vm/classfile/classFileParser.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 08f8d00f2ae3
children 71afdabfd05b
comparison
equal deleted inserted replaced
6024:973046802b6f 6038:8bafad97cd26
3353 // We can now create the basic klassOop for this klass 3353 // We can now create the basic klassOop for this klass
3354 klassOop ik = oopFactory::new_instanceKlass(name, vtable_size, itable_size, 3354 klassOop ik = oopFactory::new_instanceKlass(name, vtable_size, itable_size,
3355 static_field_size, 3355 static_field_size,
3356 total_oop_map_count, 3356 total_oop_map_count,
3357 access_flags, 3357 access_flags,
3358 rt, CHECK_(nullHandle)); 3358 rt, host_klass,
3359 CHECK_(nullHandle));
3359 instanceKlassHandle this_klass (THREAD, ik); 3360 instanceKlassHandle this_klass (THREAD, ik);
3360 3361
3361 assert(this_klass->static_field_size() == static_field_size, "sanity"); 3362 assert(this_klass->static_field_size() == static_field_size, "sanity");
3362 assert(this_klass->nonstatic_oop_map_count() == total_oop_map_count, 3363 assert(this_klass->nonstatic_oop_map_count() == total_oop_map_count,
3363 "sanity"); 3364 "sanity");