--- old/src/hotspot/share/oops/fieldStreams.hpp 2019-03-11 14:26:15.946355020 +0100 +++ new/src/hotspot/share/oops/fieldStreams.hpp 2019-03-11 14:26:15.714355023 +0100 @@ -38,6 +38,7 @@ // AllFieldStream exposes all fields and should only be used in rare // cases. class FieldStreamBase : public StackObj { + protected: Array* _fields; constantPoolHandle _constants; @@ -161,6 +162,20 @@ return field()->allocation_type(); } + bool is_flattened() { + return field()->is_flattened(); + } + + void set_flattened(bool b) { + field()->set_flattened(b); + } + + bool is_flattenable() const { + AccessFlags flags; + flags.set_flags(field()->access_flags()); + return flags.is_flattenable(); + } + void set_offset(int offset) { field()->set_offset(offset); }