Review request 7109878: The instanceKlass EnclosingMethhod attribute fields can be folded into the _inner_class field

Jiangli Zhou jiangli.zhou at oracle.com
Fri Feb 17 15:42:19 PST 2012


Hi,

Please review the changes that fold the 
instanceKlass::_enclosing_method_class_index and 
instanceKlass::_enclosing_method_method_index into the 
instanceKlass::_inner_classes array. The 
instanceKlass::_enclosing_method_class_index and 
instanceKlass::_enclosing_method_method_index are only used if the class 
contains the EnclosingMethod attribute (local class or anonymous class). 
For majority of the classes, these two fields (4byte total) are wasted. 
Folding them into the _inner_classes array and only allocating the space 
for them saves 4byte for most of the loaded classes. The enclosing 
method indexes are located at the end of the _inner_classes array when 
exist.

http://cr.openjdk.java.net/~jiangli/7109878/webrev.00/

Thanks,

Jiangli


More information about the hotspot-runtime-dev mailing list