src/hotspot/share/runtime/objectMonitor.cpp
changeset 59247 56bf71d64d51
parent 59156 14fa9e70ae71
child 59252 623722a6aeb9
--- a/src/hotspot/share/runtime/objectMonitor.cpp	Mon Nov 25 14:06:13 2019 +0100
+++ b/src/hotspot/share/runtime/objectMonitor.cpp	Mon Nov 25 12:22:13 2019 +0100
@@ -916,8 +916,8 @@
 
     // release semantics: prior loads and stores from within the critical section
     // must not float (reorder) past the following store that drops the lock.
-    OrderAccess::release_store(&_owner, (void*)NULL);   // drop the lock
-    OrderAccess::storeload();                        // See if we need to wake a successor
+    Atomic::release_store(&_owner, (void*)NULL);   // drop the lock
+    OrderAccess::storeload();                      // See if we need to wake a successor
     if ((intptr_t(_EntryList)|intptr_t(_cxq)) == 0 || _succ != NULL) {
       return;
     }
@@ -1092,7 +1092,7 @@
   Wakee  = NULL;
 
   // Drop the lock
-  OrderAccess::release_store(&_owner, (void*)NULL);
+  Atomic::release_store(&_owner, (void*)NULL);
   OrderAccess::fence();                               // ST _owner vs LD in unpark()
 
   DTRACE_MONITOR_PROBE(contended__exit, this, object(), Self);