From 876a725af95d65d59390c86bfec64c33cccbf53b Mon Sep 17 00:00:00 2001 From: Robbin Ehn Date: Wed, 30 Aug 2023 08:56:50 +0000 Subject: [PATCH] 8315206: RISC-V: hwprobe query is_set return wrong value Reviewed-by: luhenry, fyang --- src/hotspot/os_cpu/linux_riscv/riscv_hwprobe.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hotspot/os_cpu/linux_riscv/riscv_hwprobe.cpp b/src/hotspot/os_cpu/linux_riscv/riscv_hwprobe.cpp index f5b2f03ff1f..f8e42a13207 100644 --- a/src/hotspot/os_cpu/linux_riscv/riscv_hwprobe.cpp +++ b/src/hotspot/os_cpu/linux_riscv/riscv_hwprobe.cpp @@ -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; }