8305368: G1 remset chunk claiming may use relaxed memory ordering
Reviewed-by: ayang, iwalulya
This commit is contained in:
parent
c789d24039
commit
d9db90636f
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user