src/hotspot/share/gc/z/zResurrection.cpp
changeset 59253 1647ed87bf1e
parent 50525 767cdb97f103
--- a/src/hotspot/share/gc/z/zResurrection.cpp	Mon Nov 25 12:33:15 2019 +0100
+++ b/src/hotspot/share/gc/z/zResurrection.cpp	Mon Nov 25 14:56:15 2019 +0100
@@ -23,7 +23,7 @@
 
 #include "precompiled.hpp"
 #include "gc/z/zResurrection.hpp"
-#include "runtime/orderAccess.hpp"
+#include "runtime/atomic.hpp"
 #include "runtime/safepoint.hpp"
 #include "utilities/debug.hpp"
 
@@ -35,8 +35,8 @@
 }
 
 void ZResurrection::unblock() {
-  // We use a storestore barrier to make sure all healed
-  // oops are visible before we unblock resurrection.
-  OrderAccess::storestore();
-  _blocked = false;
+  // No need for anything stronger than a relaxed store here.
+  // The preceeding handshake makes sure that all non-strong
+  // oops have already been healed at this point.
+  Atomic::store(&_blocked, false);
 }