src/hotspot/share/gc/shared/taskqueue.inline.hpp
changeset 59247 56bf71d64d51
parent 57978 be5865bda5b9
child 59252 623722a6aeb9
--- a/src/hotspot/share/gc/shared/taskqueue.inline.hpp	Mon Nov 25 14:06:13 2019 +0100
+++ b/src/hotspot/share/gc/shared/taskqueue.inline.hpp	Mon Nov 25 12:22:13 2019 +0100
@@ -68,7 +68,7 @@
     // assignment.  However, casting to E& means that we trigger an
     // unused-value warning.  So, we cast the E& to void.
     (void)const_cast<E&>(_elems[localBot] = t);
-    OrderAccess::release_store(&_bottom, increment_index(localBot));
+    Atomic::release_store(&_bottom, increment_index(localBot));
     TASKQUEUE_STATS_ONLY(stats.record_push());
     return true;
   }
@@ -89,7 +89,7 @@
     // assignment.  However, casting to E& means that we trigger an
     // unused-value warning.  So, we cast the E& to void.
     (void) const_cast<E&>(_elems[localBot] = t);
-    OrderAccess::release_store(&_bottom, increment_index(localBot));
+    Atomic::release_store(&_bottom, increment_index(localBot));
     TASKQUEUE_STATS_ONLY(stats.record_push());
     return true;
   } else {
@@ -210,7 +210,7 @@
 #ifndef CPU_MULTI_COPY_ATOMIC
   OrderAccess::fence();
 #endif
-  uint localBot = OrderAccess::load_acquire(&_bottom);
+  uint localBot = Atomic::load_acquire(&_bottom);
   uint n_elems = size(localBot, oldAge.top());
   if (n_elems == 0) {
     return false;