Skip to content

Commit d993432

Browse files
fbredberstefank
authored andcommitted
8306930: Incorrect assert in BitMap::count_one_bits
Reviewed-by: stefank, tschatzl, kbarrett
1 parent 4b4c80b commit d993432

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hotspot/share/utilities/bitMap.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ BitMap::idx_t BitMap::count_one_bits(idx_t beg, idx_t end) const {
638638
sum += count_one_bits_within_word(boundary, end);
639639
}
640640

641-
assert(sum <= (beg - end), "must be");
641+
assert(sum <= (end - beg), "must be");
642642

643643
return sum;
644644

0 commit comments

Comments
 (0)