equal
deleted
inserted
replaced
248 // Place the _init_state here to utilize the unused 2-byte after |
248 // Place the _init_state here to utilize the unused 2-byte after |
249 // _idnum_allocated_count. |
249 // _idnum_allocated_count. |
250 u1 _init_state; // state of class |
250 u1 _init_state; // state of class |
251 u1 _reference_type; // reference type |
251 u1 _reference_type; // reference type |
252 |
252 |
|
253 u2 _this_class_index; // constant pool entry |
253 #if INCLUDE_JVMTI |
254 #if INCLUDE_JVMTI |
254 JvmtiCachedClassFieldMap* _jvmti_cached_class_field_map; // JVMTI: used during heap iteration |
255 JvmtiCachedClassFieldMap* _jvmti_cached_class_field_map; // JVMTI: used during heap iteration |
255 #endif |
256 #endif |
256 |
257 |
257 NOT_PRODUCT(int _verify_count;) // to avoid redundant verifies |
258 NOT_PRODUCT(int _verify_count;) // to avoid redundant verifies |
514 void set_reference_type(ReferenceType t) { |
515 void set_reference_type(ReferenceType t) { |
515 assert(t == (u1)t, "overflow"); |
516 assert(t == (u1)t, "overflow"); |
516 _reference_type = (u1)t; |
517 _reference_type = (u1)t; |
517 } |
518 } |
518 |
519 |
|
520 // this class cp index |
|
521 u2 this_class_index() const { return _this_class_index; } |
|
522 void set_this_class_index(u2 index) { _this_class_index = index; } |
|
523 |
519 static ByteSize reference_type_offset() { return in_ByteSize(offset_of(InstanceKlass, _reference_type)); } |
524 static ByteSize reference_type_offset() { return in_ByteSize(offset_of(InstanceKlass, _reference_type)); } |
520 |
525 |
521 // find local field, returns true if found |
526 // find local field, returns true if found |
522 bool find_local_field(Symbol* name, Symbol* sig, fieldDescriptor* fd) const; |
527 bool find_local_field(Symbol* name, Symbol* sig, fieldDescriptor* fd) const; |
523 // find field in direct superinterfaces, returns the interface in which the field is defined |
528 // find field in direct superinterfaces, returns the interface in which the field is defined |