diff --git a/src/hotspot/share/gc/g1/g1RemSet.cpp b/src/hotspot/share/gc/g1/g1RemSet.cpp index 7dba70adf41..9e25b05935d 100644 --- a/src/hotspot/share/gc/g1/g1RemSet.cpp +++ b/src/hotspot/share/gc/g1/g1RemSet.cpp @@ -427,7 +427,7 @@ public: uint claim_cards_to_scan(uint region, uint increment) { assert(region < _max_reserved_regions, "Tried to access invalid region %u", region); - return Atomic::fetch_and_add(&_card_table_scan_state[region], increment); + return Atomic::fetch_and_add(&_card_table_scan_state[region], increment, memory_order_relaxed); } void add_dirty_region(uint const region) {