The ReferenceType is defined as an enum with 6 values (src/share/vm/utilities/globalDefinitions.hpp). The InstanceKlass::_reference_type is an int type. It can be reduced to u1 type. Move the field within InstanceKlass to utilize unused memory can save 4-byte for each class.
|