8156068: Unsafe.{get|set}Opaque should be single copy atomic
authorshade
Fri, 06 May 2016 15:41:15 +0300
changeset 38278 6ec4e44eda22
parent 38240 28e0cafd5222
child 38279 e15886fd3b96
8156068: Unsafe.{get|set}Opaque should be single copy atomic Reviewed-by: psandoz, vlivanov
hotspot/src/share/vm/opto/library_call.cpp
--- 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: