8315948: JDK-8315818 broke Xcomp on libgraal
Reviewed-by: never, thartmann
This commit is contained in:
parent
8b4f9a88e6
commit
6f2684b7ba
@ -1229,6 +1229,7 @@ void CompileBroker::compile_method_base(const methodHandle& method,
|
||||
blocking = false;
|
||||
}
|
||||
|
||||
// In libjvmci, JVMCI initialization should not deadlock with other threads
|
||||
if (!UseJVMCINativeLibrary) {
|
||||
// Don't allow blocking compiles if inside a class initializer or while performing class loading
|
||||
vframeStream vfst(JavaThread::cast(thread));
|
||||
@ -1240,12 +1241,12 @@ void CompileBroker::compile_method_base(const methodHandle& method,
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Don't allow blocking compilation requests to JVMCI
|
||||
// if JVMCI itself is not yet initialized
|
||||
if (!JVMCI::is_compiler_initialized() && compiler(comp_level)->is_jvmci()) {
|
||||
blocking = false;
|
||||
// Don't allow blocking compilation requests to JVMCI
|
||||
// if JVMCI itself is not yet initialized
|
||||
if (!JVMCI::is_compiler_initialized() && compiler(comp_level)->is_jvmci()) {
|
||||
blocking = false;
|
||||
}
|
||||
}
|
||||
|
||||
// Don't allow blocking compilation requests if we are in JVMCIRuntime::shutdown
|
||||
|
Loading…
Reference in New Issue
Block a user