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; }