hotspot/src/share/vm/oops/instanceKlass.hpp
changeset 9179 6db9c9dffe1f
parent 8883 5569135acca3
parent 9176 42d9d1010f38
child 9182 ab3e9e0925ad
--- a/hotspot/src/share/vm/oops/instanceKlass.hpp	Wed Apr 06 16:02:53 2011 -0700
+++ b/hotspot/src/share/vm/oops/instanceKlass.hpp	Fri Apr 08 14:19:50 2011 -0700
@@ -403,6 +403,8 @@
   ReferenceType reference_type() const     { return _reference_type; }
   void set_reference_type(ReferenceType t) { _reference_type = t; }
 
+  static int reference_type_offset_in_bytes() { return offset_of(instanceKlass, _reference_type); }
+
   // find local field, returns true if found
   bool find_local_field(Symbol* name, Symbol* sig, fieldDescriptor* fd) const;
   // find field in direct superinterfaces, returns the interface in which the field is defined