mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +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
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -65,7 +65,7 @@ class ObjArrayKlass : public ArrayKlass {
|
|||
PackageEntry* package() const;
|
||||
|
||||
// Compiler/Interpreter offset
|
||||
static ByteSize element_klass_offset() { return in_ByteSize(offset_of(ObjArrayKlass, _element_klass)); }
|
||||
static ByteSize element_klass_offset() { return byte_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