mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 09:34:38 +02:00
8205459: Rename Access API flag decorators
Rename OOP_NOT_NULL, IN_HEAP_ARRAY, AS_DEST_NOT_INITIALIZED Reviewed-by: pliden, stefank
This commit is contained in:
parent
49396d51e9
commit
b84c23399e
67 changed files with 263 additions and 276 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2018, 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
|
||||
|
@ -46,12 +46,12 @@ template <class T> T* objArrayOopDesc::obj_at_addr_raw(int index) const {
|
|||
|
||||
inline oop objArrayOopDesc::obj_at(int index) const {
|
||||
ptrdiff_t offset = UseCompressedOops ? obj_at_offset<narrowOop>(index) : obj_at_offset<oop>(index);
|
||||
return HeapAccess<IN_HEAP_ARRAY>::oop_load_at(as_oop(), offset);
|
||||
return HeapAccess<IS_ARRAY>::oop_load_at(as_oop(), offset);
|
||||
}
|
||||
|
||||
inline void objArrayOopDesc::obj_at_put(int index, oop value) {
|
||||
ptrdiff_t offset = UseCompressedOops ? obj_at_offset<narrowOop>(index) : obj_at_offset<oop>(index);
|
||||
HeapAccess<IN_HEAP_ARRAY>::oop_store_at(as_oop(), offset, value);
|
||||
HeapAccess<IS_ARRAY>::oop_store_at(as_oop(), offset, value);
|
||||
}
|
||||
|
||||
#endif // SHARE_VM_OOPS_OBJARRAYOOP_INLINE_HPP
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue