--- a/src/hotspot/share/utilities/globalCounter.inline.hpp Mon Nov 25 14:06:13 2019 +0100
+++ b/src/hotspot/share/utilities/globalCounter.inline.hpp Mon Nov 25 12:22:13 2019 +0100
@@ -40,7 +40,7 @@
if ((new_cnt & COUNTER_ACTIVE) == 0) {
new_cnt = Atomic::load(&_global_counter._counter) | COUNTER_ACTIVE;
}
- OrderAccess::release_store_fence(thread->get_rcu_counter(), new_cnt);
+ Atomic::release_store_fence(thread->get_rcu_counter(), new_cnt);
return static_cast<CSContext>(old_cnt);
}
@@ -49,8 +49,8 @@
assert(thread == Thread::current(), "must be current thread");
assert((*thread->get_rcu_counter() & COUNTER_ACTIVE) == COUNTER_ACTIVE, "must be in critical section");
// Restore the counter value from before the associated begin.
- OrderAccess::release_store(thread->get_rcu_counter(),
- static_cast<uintx>(context));
+ Atomic::release_store(thread->get_rcu_counter(),
+ static_cast<uintx>(context));
}
class GlobalCounter::CriticalSection {