mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
7118863: Move sizeof(klassOopDesc) into the *Klass::*_offset_in_bytes() functions
Moved sizeof(klassOopDesc), changed the return type to ByteSize and removed the _in_bytes suffix. Reviewed-by: never, bdelsart, coleenp, jrose
This commit is contained in:
parent
dc542c9909
commit
e057d60ca1
40 changed files with 165 additions and 213 deletions
|
@ -47,7 +47,7 @@ class objArrayKlass : public arrayKlass {
|
|||
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue