Skip to content


8315206: RISC-V: hwprobe query is_set return wrong value
Browse files Browse the repository at this point in the history
Reviewed-by: luhenry, fyang
  • Loading branch information
robehn committed Aug 30, 2023
1 parent ed1ea5f commit 876a725
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hotspot/os_cpu/linux_riscv/riscv_hwprobe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ static bool is_valid(int64_t key) {

static bool is_set(int64_t key, uint64_t value_mask) {
if (is_valid(key)) {
return query[key].value & value_mask != 0;
return (query[key].value & value_mask) != 0;
return false;
Expand Down

1 comment on commit 876a725

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.