Skip to content

Commit 5521560

Browse files
author
Doug Simon
committed
8310673: [JVMCI] batch compilation for libgraal should work the same way as for C2
Reviewed-by: thartmann, never
1 parent e4329a8 commit 5521560

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/hotspot/share/compiler/compileBroker.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -1700,8 +1700,11 @@ void CompileBroker::wait_for_completion(CompileTask* task) {
17001700
bool free_task;
17011701
#if INCLUDE_JVMCI
17021702
AbstractCompiler* comp = compiler(task->comp_level());
1703-
if (comp->is_jvmci() && !task->should_wait_for_compilation()) {
1703+
if (!UseJVMCINativeLibrary && comp->is_jvmci() && !task->should_wait_for_compilation()) {
17041704
// It may return before compilation is completed.
1705+
// Note that libjvmci should not pre-emptively unblock
1706+
// a thread waiting for a compilation as it does not call
1707+
// Java code and so is not deadlock prone like jarjvmci.
17051708
free_task = wait_for_jvmci_completion((JVMCICompiler*) comp, task, thread);
17061709
} else
17071710
#endif

0 commit comments

Comments
 (0)