hotspot/src/share/vm/oops/objArrayKlass.hpp
changeset 11430 718fc06da49a
parent 7397 5b173b4ca846
child 12379 2cf45b79ce3a
--- a/hotspot/src/share/vm/oops/objArrayKlass.hpp	Tue Dec 20 00:55:02 2011 -0800
+++ b/hotspot/src/share/vm/oops/objArrayKlass.hpp	Wed Dec 07 11:35:03 2011 +0100
@@ -47,7 +47,7 @@
   oop* bottom_klass_addr()            { return (oop*)&_bottom_klass; }
 
   // Compiler/Interpreter offset
-  static int element_klass_offset_in_bytes() { return offset_of(objArrayKlass, _element_klass); }
+  static ByteSize element_klass_offset() { return in_ByteSize(sizeof(klassOopDesc) + offset_of(objArrayKlass, _element_klass)); }
 
   // Dispatched operation
   bool can_be_primary_super_slow() const;