Mercurial > hg > truffle
diff src/share/vm/oops/objArrayOop.hpp @ 895:94b6d06fd759
6860920: serialize.cpp shouldn't use objArrayOopDesc::base_offset_in_bytes(T_BYTE)
Summary: serialize.cpp currently uses objArrayOopDesc::base_offset_in_bytes(T_BYTE), which seems to be wrong.
Reviewed-by: coleenp, kvn
author | twisti |
---|---|
date | Mon, 20 Jul 2009 08:20:00 -0700 |
parents | 1ee8caae33af |
children | 89e0543e1737 |
line wrap: on
line diff
--- a/src/share/vm/oops/objArrayOop.hpp Fri Jul 17 00:50:55 2009 -0700 +++ b/src/share/vm/oops/objArrayOop.hpp Mon Jul 20 08:20:00 2009 -0700 @@ -38,6 +38,11 @@ } public: + // Returns the offset of the first element. + static int base_offset_in_bytes() { + return arrayOopDesc::base_offset_in_bytes(T_OBJECT); + } + // base is the address following the header. HeapWord* base() const { return (HeapWord*) arrayOopDesc::base(T_OBJECT); }