< prev index next >
src/hotspot/share/gc/z/zBitMap.inline.hpp
Print this page
*** 53,63 ****
if (new_val == old_val) {
// Someone else beat us to it
inc_live = false;
return false;
}
! const bm_word_t cur_val = Atomic::cmpxchg(new_val, addr, old_val);
if (cur_val == old_val) {
// Success
const bm_word_t marked_mask = bit_mask(bit);
inc_live = !(old_val & marked_mask);
return true;
--- 53,63 ----
if (new_val == old_val) {
// Someone else beat us to it
inc_live = false;
return false;
}
! const bm_word_t cur_val = Atomic::cmpxchg(addr, old_val, new_val);
if (cur_val == old_val) {
// Success
const bm_word_t marked_mask = bit_mask(bit);
inc_live = !(old_val & marked_mask);
return true;
< prev index next >