hotspot/src/share/vm/prims/unsafe.cpp
changeset 40918 4b0a28b0ed28
parent 40664 1ec65b303bb7
child 40923 10fe1c28b9f6
--- a/hotspot/src/share/vm/prims/unsafe.cpp	Wed Aug 31 09:38:46 2016 +0200
+++ b/hotspot/src/share/vm/prims/unsafe.cpp	Mon Sep 05 20:40:08 2016 -0400
@@ -324,6 +324,10 @@
 
   volatile oop v;
 
+  if (support_IRIW_for_not_multiple_copy_atomic_cpu) {
+    OrderAccess::fence();
+  }
+
   if (UseCompressedOops) {
     volatile narrowOop n = *(volatile narrowOop*) addr;
     (void)const_cast<oop&>(v = oopDesc::decode_heap_oop(n));