mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-16 17:14:41 +02:00
8308396: Fix offset_of conversion warnings in runtime code
Reviewed-by: amitkumar, jsjolen, fparain
This commit is contained in:
parent
a5343fa605
commit
265f40b4f7
85 changed files with 438 additions and 436 deletions
|
@ -309,8 +309,8 @@ class oopDesc {
|
|||
static bool has_klass_gap();
|
||||
|
||||
// for code generation
|
||||
static int mark_offset_in_bytes() { return offset_of(oopDesc, _mark); }
|
||||
static int klass_offset_in_bytes() { return offset_of(oopDesc, _metadata._klass); }
|
||||
static int mark_offset_in_bytes() { return (int)offset_of(oopDesc, _mark); }
|
||||
static int klass_offset_in_bytes() { return (int)offset_of(oopDesc, _metadata._klass); }
|
||||
static int klass_gap_offset_in_bytes() {
|
||||
assert(has_klass_gap(), "only applicable to compressed klass pointers");
|
||||
return klass_offset_in_bytes() + sizeof(narrowKlass);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue