Skip to content

Commit 876a725

Browse files
committed
8315206: RISC-V: hwprobe query is_set return wrong value
Reviewed-by: luhenry, fyang
1 parent ed1ea5f commit 876a725

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hotspot/os_cpu/linux_riscv/riscv_hwprobe.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ static bool is_valid(int64_t key) {
100100

101101
static bool is_set(int64_t key, uint64_t value_mask) {
102102
if (is_valid(key)) {
103-
return query[key].value & value_mask != 0;
103+
return (query[key].value & value_mask) != 0;
104104
}
105105
return false;
106106
}

0 commit comments

Comments
 (0)