8200261: Regression with JVM anonymous class

Restore resolved anonymous class when creating a new constantpool because of overpass methods

Reviewed-by: coleenp, lfoltan
This commit is contained in:
Harold Seigel 2018-04-05 13:19:25 -04:00
parent 094178fdba
commit b89ae10df2
4 changed files with 197 additions and 1 deletions

View file

@ -250,6 +250,7 @@ class InstanceKlass: public Klass {
u1 _init_state; // state of class
u1 _reference_type; // reference type
u2 _this_class_index; // constant pool entry
#if INCLUDE_JVMTI
JvmtiCachedClassFieldMap* _jvmti_cached_class_field_map; // JVMTI: used during heap iteration
#endif
@ -516,6 +517,10 @@ class InstanceKlass: public Klass {
_reference_type = (u1)t;
}
// this class cp index
u2 this_class_index() const { return _this_class_index; }
void set_this_class_index(u2 index) { _this_class_index = index; }
static ByteSize reference_type_offset() { return in_ByteSize(offset_of(InstanceKlass, _reference_type)); }
// find local field, returns true if found