From f687c82ef9ede1d9d02ca0965c896bcf658c450a Mon Sep 17 00:00:00 2001 From: Tomas Zezula Date: Fri, 4 Oct 2024 17:20:07 +0200 Subject: [PATCH] UseJVMCINativeLibrary check must be guarded by JVMCI_ONLY. --- src/hotspot/share/compiler/compilerThread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hotspot/share/compiler/compilerThread.cpp b/src/hotspot/share/compiler/compilerThread.cpp index 0c4e781f3c512..86fcabd6efa13 100644 --- a/src/hotspot/share/compiler/compilerThread.cpp +++ b/src/hotspot/share/compiler/compilerThread.cpp @@ -60,7 +60,7 @@ void CompilerThread::set_compiler(AbstractCompiler* c) { * we need to enable Java calls for upcalls to the jargraal compiler. * Java calls are also needed by InterpreterRuntime when running the jargraal compiler. */ - _can_call_java = c != nullptr && c->is_jvmci() && !UseJVMCINativeLibrary; + _can_call_java = c != nullptr && c->is_jvmci() JVMCI_ONLY(&& !UseJVMCINativeLibrary); _compiler = c; }