changeset 11940:6ed5d1d6f24c

8165018: Missing memory barrier for PPC64 in Unsafe_GetObjectVolatile Reviewed-by: kbarrett, dholmes
author mdoerr
date Mon, 05 Sep 2016 20:40:08 -0400
parents a60eceb45884
children c54ebf67ef13
files src/share/vm/prims/unsafe.cpp
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/prims/unsafe.cpp	Wed Aug 31 09:38:46 2016 +0200
+++ b/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));