Request for review: 7123315 instanceKlass::_static_oop_field_count and instanceKlass::_java_fields_count should be u2 type
jiangli.zhou at oracle.com
Tue Dec 20 11:58:42 PST 2011
The instanceKlass::_static_oop_field_count and
instanceKlass::_java_fields_count are defined as int type currently. The
VM spec specifies the 'field_count' as u2. Based on that, these two
fields can be defined as u2. That would save 4-byte for each loaded
class when placing the two fields next to each other.
Tested with runThese -jdk and UTE nsk/sajdi/ tests. Ran jprt.
Performance testing with specjvm98 and specjbb2005 didn't show any
More information about the hotspot-runtime-dev