8156068: Unsafe.{get|set}Opaque should be single copy atomic
Reviewed-by: psandoz, vlivanov
--- a/hotspot/src/share/vm/opto/library_call.cpp Thu May 05 18:14:51 2016 -0700
+++ b/hotspot/src/share/vm/opto/library_call.cpp Fri May 06 15:41:15 2016 +0300
@@ -2472,9 +2472,10 @@
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: