Skip to content

Commit

Permalink
8281297: TestStressG1Humongous fails with guarantee(is_range_uncommit…
Browse files Browse the repository at this point in the history
…ted)

Backport-of: 1ce72eabe54520845d8466c9d3ac07b60597182a
  • Loading branch information
GoeLin committed Oct 12, 2022
1 parent c064dce commit 31d178b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/hotspot/share/utilities/bitMap.cpp
Expand Up @@ -212,10 +212,10 @@ void BitMap::par_put_range_within_word(idx_t beg, idx_t end, bool value) {
// With a valid range (beg <= end), this test ensures that end != 0, as
// required by inverted_bit_mask_for_range. Also avoids an unnecessary write.
if (beg != end) {
bm_word_t* pw = word_addr(beg);
bm_word_t w = *pw;
bm_word_t mr = inverted_bit_mask_for_range(beg, end);
bm_word_t nw = value ? (w | ~mr) : (w & mr);
volatile bm_word_t* pw = word_addr(beg);
bm_word_t w = Atomic::load(pw);
bm_word_t mr = inverted_bit_mask_for_range(beg, end);
bm_word_t nw = value ? (w | ~mr) : (w & mr);
while (true) {
bm_word_t res = Atomic::cmpxchg(nw, pw, w);
if (res == w) break;
Expand Down

1 comment on commit 31d178b

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.