src/hotspot/share/gc/shared/cardTableBarrierSet.inline.hpp
changeset 59247 56bf71d64d51
parent 54110 f4f0dce5d0bb
--- a/src/hotspot/share/gc/shared/cardTableBarrierSet.inline.hpp	Mon Nov 25 14:06:13 2019 +0100
+++ b/src/hotspot/share/gc/shared/cardTableBarrierSet.inline.hpp	Mon Nov 25 12:22:13 2019 +0100
@@ -27,14 +27,14 @@
 
 #include "gc/shared/cardTableBarrierSet.hpp"
 #include "gc/shared/cardTable.hpp"
-#include "runtime/orderAccess.hpp"
+#include "runtime/atomic.hpp"
 
 template <DecoratorSet decorators, typename T>
 inline void CardTableBarrierSet::write_ref_field_post(T* field, oop newVal) {
   volatile CardValue* byte = _card_table->byte_for(field);
   if (_card_table->scanned_concurrently()) {
     // Perform a releasing store if the card table is scanned concurrently
-    OrderAccess::release_store(byte, CardTable::dirty_card_val());
+    Atomic::release_store(byte, CardTable::dirty_card_val());
   } else {
     *byte = CardTable::dirty_card_val();
   }