Mercurial > hg > graal-compiler
diff src/share/vm/oops/arrayKlass.hpp @ 4762:069ab3f976d3
7118863: Move sizeof(klassOopDesc) into the *Klass::*_offset_in_bytes() functions
Summary: Moved sizeof(klassOopDesc), changed the return type to ByteSize and removed the _in_bytes suffix.
Reviewed-by: never, bdelsart, coleenp, jrose
author | stefank |
---|---|
date | Wed, 07 Dec 2011 11:35:03 +0100 |
parents | 3582bf76420e |
children | da91efe96a93 |
line wrap: on
line diff
--- a/src/share/vm/oops/arrayKlass.hpp Tue Dec 20 00:55:02 2011 -0800 +++ b/src/share/vm/oops/arrayKlass.hpp Wed Dec 07 11:35:03 2011 +0100 @@ -73,7 +73,7 @@ oop* adr_component_mirror() { return (oop*)&this->_component_mirror;} // Compiler/Interpreter offset - static ByteSize component_mirror_offset() { return byte_offset_of(arrayKlass, _component_mirror); } + static ByteSize component_mirror_offset() { return in_ByteSize(sizeof(klassOopDesc) + offset_of(arrayKlass, _component_mirror)); } virtual klassOop java_super() const;//{ return SystemDictionary::Object_klass(); }