mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 09:34:38 +02:00
8251358: Clean up Access configuration after Shenandoah barrier change
Reviewed-by: eosterlund, rkennke, shade
This commit is contained in:
parent
9c17a35e50
commit
e63b90cc17
38 changed files with 110 additions and 202 deletions
|
@ -32,18 +32,12 @@
|
|||
#include "runtime/globals.hpp"
|
||||
|
||||
inline HeapWord* objArrayOopDesc::base() const { return (HeapWord*) arrayOopDesc::base(T_OBJECT); }
|
||||
inline HeapWord* objArrayOopDesc::base_raw() const { return (HeapWord*) arrayOopDesc::base_raw(T_OBJECT); }
|
||||
|
||||
template <class T> T* objArrayOopDesc::obj_at_addr(int index) const {
|
||||
assert(is_within_bounds(index), "index %d out of bounds %d", index, length());
|
||||
return &((T*)base())[index];
|
||||
}
|
||||
|
||||
template <class T> T* objArrayOopDesc::obj_at_addr_raw(int index) const {
|
||||
assert(is_within_bounds(index), "index %d out of bounds %d", index, length());
|
||||
return &((T*)base_raw())[index];
|
||||
}
|
||||
|
||||
inline oop objArrayOopDesc::obj_at(int index) const {
|
||||
assert(is_within_bounds(index), "index %d out of bounds %d", index, length());
|
||||
ptrdiff_t offset = UseCompressedOops ? obj_at_offset<narrowOop>(index) : obj_at_offset<oop>(index);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue