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:
Coleen Phillimore 2018-04-18 10:39:40 -04:00
parent 1b29264229
commit 1ee531afe9
34 changed files with 134 additions and 68 deletions

View file

@ -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