Skip to content

Commit

Permalink
Better log
Browse files Browse the repository at this point in the history
  • Loading branch information
robehn committed Jan 23, 2025
1 parent 832720f commit 278f60c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/hotspot/os_cpu/linux_riscv/riscv_hwprobe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
*/

#include "logging/log.hpp"
#include "logging/logMessage.hpp"
#include "os_linux.hpp"
#include "riscv_hwprobe.hpp"
#include "runtime/os.hpp"
Expand Down Expand Up @@ -168,8 +169,11 @@ void RiscvHwprobe::add_features_from_query_result() {
long major, minor;
os::Linux::kernel_version(&major, &minor);
if (!(major > 6 || (major == 6 && minor >= 9))) {
log_info(os)("Linux kernel %ld.%ld have a known bug when using Vector and signals.\n"
"Not enabled automatically via hwprobe. Use -XX:+UseRVV to force.", major, minor);
LogMessage(os) log;
if (log.is_info()) {
log.info("Linux kernels before 6.9 (current %ld.%ld) have a known bug when using Vector and signals.", major, minor);
log.info("Vector not enabled automatically via hwprobe, but can be turned on with -XX:+UseRVV.");
}
} else {
VM_Version::ext_V.enable_feature();
}
Expand Down

0 comments on commit 278f60c

Please sign in to comment.