--- old/src/hotspot/share/ci/ciInstanceKlass.cpp 2018-11-30 10:23:17.563088046 +0100 +++ new/src/hotspot/share/ci/ciInstanceKlass.cpp 2018-11-30 10:23:17.414089575 +0100 @@ -742,3 +742,27 @@ ik->do_local_static_fields(&sffp); } } + +#ifdef ASSERT +bool ciInstanceKlass::debug_final_field_at(int offset) { + GUARDED_VM_ENTRY( + InstanceKlass* ik = get_instanceKlass(); + fieldDescriptor fd; + if (ik->find_field_from_offset(offset, false, &fd)) { + return fd.is_final(); + } + ); + return false; +} + +bool ciInstanceKlass::debug_stable_field_at(int offset) { + GUARDED_VM_ENTRY( + InstanceKlass* ik = get_instanceKlass(); + fieldDescriptor fd; + if (ik->find_field_from_offset(offset, false, &fd)) { + return fd.is_stable(); + } + ); + return false; +} +#endif