changeset 11736:fcb21f5eac8e

8156068: Unsafe.{get|set}Opaque should be single copy atomic Reviewed-by: psandoz, vlivanov
author shade
date Fri, 06 May 2016 15:41:15 +0300
parents f57bf5857679
children 2073d966bcef
files src/share/vm/opto/library_call.cpp
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/opto/library_call.cpp	Thu May 05 18:14:51 2016 -0700
+++ b/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: