Merge
authordcubed
Mon, 10 Jan 2011 09:23:20 -0800
changeset 7895 e71bad345f3a
parent 7739 f658ec2730fa (current diff)
parent 7894 48e7725b6bc4 (diff)
child 7896 08aadd7aa3ee
Merge
hotspot/src/share/vm/c1/c1_LIRGenerator.cpp
--- a/hotspot/src/share/vm/c1/c1_LIRGenerator.cpp	Wed Jul 05 17:31:42 2017 +0200
+++ b/hotspot/src/share/vm/c1/c1_LIRGenerator.cpp	Mon Jan 10 09:23:20 2011 -0800
@@ -1990,9 +1990,8 @@
 
   LIR_Opr reg = reg = rlock_result(x, x->basic_type());
 
+  get_Object_unsafe(reg, src.result(), off.result(), type, x->is_volatile());
   if (x->is_volatile() && os::is_MP()) __ membar_acquire();
-  get_Object_unsafe(reg, src.result(), off.result(), type, x->is_volatile());
-  if (x->is_volatile() && os::is_MP()) __ membar();
 }
 
 
@@ -2014,6 +2013,7 @@
 
   if (x->is_volatile() && os::is_MP()) __ membar_release();
   put_Object_unsafe(src.result(), off.result(), data.result(), type, x->is_volatile());
+  if (x->is_volatile() && os::is_MP()) __ membar();
 }