Skip to content

Commit 45a6359

Browse files
author
William Kemper
committedOct 8, 2024
8341668: Shenandoah: assert(tail_bits < (idx_t)BitsPerWord) failed: precondition
Reviewed-by: ysr
1 parent d996ca8 commit 45a6359

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
 

‎src/hotspot/share/gc/shenandoah/shenandoahSimpleBitMap.hpp

+2
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ class ShenandoahSimpleBitMap {
8080
bool is_forward_consecutive_ones(idx_t start_idx, idx_t count) const;
8181
bool is_backward_consecutive_ones(idx_t last_idx, idx_t count) const;
8282

83+
static inline uintx tail_mask(uintx bit_number);
84+
8385
public:
8486

8587
inline idx_t aligned_index(idx_t idx) const {

‎src/hotspot/share/gc/shenandoah/shenandoahSimpleBitMap.inline.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
#include "gc/shenandoah/shenandoahSimpleBitMap.hpp"
2929

30-
inline uintx tail_mask(uintx bit_number) {
30+
inline uintx ShenandoahSimpleBitMap::tail_mask(uintx bit_number) {
3131
if (bit_number >= BitsPerWord) {
3232
return -1;
3333
}

0 commit comments

Comments
 (0)
Please sign in to comment.