8156068: Unsafe.{get|set}Opaque should be single copy atomic

Reviewed-by: psandoz, vlivanov
This commit is contained in:
Aleksey Shipilev 2016-05-06 15:41:15 +03:00
parent 107de3478c
commit b3f1f110f4

View File

@ -2472,9 +2472,10 @@ bool LibraryCallKit::inline_unsafe_access(const bool is_native_ptr, bool is_stor
bool requires_atomic_access = false;
switch (kind) {
case Relaxed:
case Opaque:
requires_atomic_access = AlwaysAtomicAccesses;
break;
case Opaque:
// Opaque accesses are atomic.
case Acquire:
case Release:
case Volatile: