hotspot/src/os/linux/vm/os_linux.cpp
changeset 4487 de1359156181
parent 4013 b154310845de
child 4493 9204129f065e
--- a/hotspot/src/os/linux/vm/os_linux.cpp	Wed Nov 25 08:37:04 2009 -0800
+++ b/hotspot/src/os/linux/vm/os_linux.cpp	Tue Dec 01 22:29:02 2009 -0500
@@ -4683,6 +4683,7 @@
   // Return immediately if a permit is available.
   if (_counter > 0) {
       _counter = 0 ;
+      OrderAccess::fence();
       return ;
   }
 
@@ -4725,6 +4726,7 @@
     _counter = 0;
     status = pthread_mutex_unlock(_mutex);
     assert (status == 0, "invariant") ;
+    OrderAccess::fence();
     return;
   }
 
@@ -4765,6 +4767,7 @@
     jt->java_suspend_self();
   }
 
+  OrderAccess::fence();
 }
 
 void Parker::unpark() {