8248168: [Graal] jck tests timeout in Graal with -Xcomp mode

Re-enable deadlock avoidance logic for JVMCI and Xcomp.

Reviewed-by: kvn
This commit is contained in:
Igor Veresov 2020-06-26 15:08:25 -07:00
parent 2534e72618
commit 1ef33e4df9
2 changed files with 2 additions and 3 deletions

View File

@ -1655,7 +1655,7 @@ void CompileBroker::wait_for_completion(CompileTask* task) {
bool free_task;
#if INCLUDE_JVMCI
AbstractCompiler* comp = compiler(task->comp_level());
if (comp->is_jvmci() && !task->should_wait_for_compilation()) {
if (!UseJVMCINativeLibrary && comp->is_jvmci() && !task->should_wait_for_compilation()) {
// It may return before compilation is completed.
free_task = wait_for_jvmci_completion((JVMCICompiler*) comp, task, thread);
} else

View File

@ -53,7 +53,7 @@ class CompileTask : public CHeapObj<mtCompiler> {
Reason_CTW, // Compile the world
Reason_Replay, // ciReplay
Reason_Whitebox, // Whitebox API
Reason_MustBeCompiled, // Java callHelper, LinkResolver
Reason_MustBeCompiled, // Used for -Xcomp or AlwaysCompileLoopMethods (see CompilationPolicy::must_be_compiled())
Reason_Bootstrap, // JVMCI bootstrap
Reason_Count
};
@ -140,7 +140,6 @@ class CompileTask : public CHeapObj<mtCompiler> {
case Reason_CTW:
case Reason_Replay:
case Reason_Whitebox:
case Reason_MustBeCompiled:
case Reason_Bootstrap:
return _is_blocking;
default: