--- old/src/hotspot/share/oops/valueKlass.hpp 2019-11-21 11:03:16.537091191 +0100 +++ new/src/hotspot/share/oops/valueKlass.hpp 2019-11-21 11:03:16.265086575 +0100 @@ -195,6 +195,7 @@ // allocate_instance() allocates a stand alone value in the Java heap instanceOop allocate_instance(TRAPS); + instanceOop allocate_instance_buffer(TRAPS); // minimum number of bytes occupied by nonstatic fields, HeapWord aligned or pow2 int raw_value_byte_size(); @@ -273,6 +274,10 @@ return byte_offset_of(ValueKlassFixedBlock, _default_value_offset); } + static ByteSize first_field_offset_offset() { + return byte_offset_of(ValueKlassFixedBlock, _first_field_offset); + } + void set_default_value_offset(int offset) { *((int*)adr_default_value_offset()) = offset; }