hotspot/src/os/solaris/vm/os_solaris.cpp
changeset 4487 de1359156181
parent 3594 0ce9158bc84c
child 4493 9204129f065e
--- a/hotspot/src/os/solaris/vm/os_solaris.cpp	Wed Nov 25 08:37:04 2009 -0800
+++ b/hotspot/src/os/solaris/vm/os_solaris.cpp	Tue Dec 01 22:29:02 2009 -0500
@@ -5803,6 +5803,7 @@
   // Return immediately if a permit is available.
   if (_counter > 0) {
       _counter = 0 ;
+      OrderAccess::fence();
       return ;
   }
 
@@ -5846,6 +5847,7 @@
     _counter = 0;
     status = os::Solaris::mutex_unlock(_mutex);
     assert (status == 0, "invariant") ;
+    OrderAccess::fence();
     return;
   }
 
@@ -5892,6 +5894,7 @@
     jt->java_suspend_self();
   }
 
+  OrderAccess::fence();
 }
 
 void Parker::unpark() {