mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8200555: OopHandle should use Access API
Add RootAccess<> to OopHandle.resolve() in runtime and interpreter code. Add comments for compiler code for later. Reviewed-by: eosterlund, stefank
This commit is contained in:
parent
1b29264229
commit
1ee531afe9
34 changed files with 134 additions and 68 deletions
|
@ -26,6 +26,7 @@
|
|||
#define SHARE_VM_OOPS_CPCACHEOOP_INLINE_HPP
|
||||
|
||||
#include "oops/cpCache.hpp"
|
||||
#include "oops/oopHandle.inline.hpp"
|
||||
#include "runtime/orderAccess.inline.hpp"
|
||||
|
||||
inline int ConstantPoolCacheEntry::indices_ord() const { return OrderAccess::load_acquire(&_indices); }
|
||||
|
@ -96,4 +97,6 @@ inline ConstantPoolCache::ConstantPoolCache(int length,
|
|||
}
|
||||
}
|
||||
|
||||
inline oop ConstantPoolCache::resolved_references() { return _resolved_references.resolve(); }
|
||||
|
||||
#endif // SHARE_VM_OOPS_CPCACHEOOP_INLINE_HPP
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue