Skip to content

Commit

Permalink
Fixed version check
Browse files Browse the repository at this point in the history
  • Loading branch information
robehn committed Feb 19, 2024
1 parent 9975040 commit 819c891
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hotspot/os/linux/systemMemoryBarrier_linux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ bool LinuxSystemMemoryBarrier::initialize() {
// But RISCV actually don't support it until 6.9.
long major, minor;
os::Linux::kernel_version(&major, &minor);
if (!(major >= 6 && minor >= 9)) {
if (!(major > 6 || (major == 6 && minor >= 9))) {
log_info(os)("Linux kernel %ld.%ld do not support MEMBARRIER PRIVATE_EXPEDITED on RISC-V.",
major, minor);
return false;
Expand Down

0 comments on commit 819c891

Please sign in to comment.