mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 03:58:21 +00:00
Use compare_set
This commit is contained in:
parent
e83ca5e45b
commit
e12a480318
@ -220,7 +220,7 @@ bool ZMarkStripeSet::try_set_nstripes(size_t old_nstripes, size_t new_nstripes)
|
|||||||
|
|
||||||
// Mutators may read these values concurrently. It doesn't matter
|
// Mutators may read these values concurrently. It doesn't matter
|
||||||
// if they see the old or new values.
|
// if they see the old or new values.
|
||||||
if (_nstripes_mask.compare_exchange(old_nstripes_mask, new_nstripes_mask) == old_nstripes_mask) {
|
if (_nstripes_mask.compare_set(old_nstripes_mask, new_nstripes_mask)) {
|
||||||
log_debug(gc, marking)("Using %zu mark stripes", new_nstripes);
|
log_debug(gc, marking)("Using %zu mark stripes", new_nstripes);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user