Skip to content

Commit df44210

Browse files
authored
Merge pull request eclipse-openj9#21331 from dsouzai/postRestoreCompThreads
Don't resume more than one comp thread if the queue weight is 0
2 parents a840d4a + e4971ed commit df44210

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runtime/compiler/control/CompilationThread.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2769,7 +2769,7 @@ void TR::CompilationInfo::resumeCompilationThread()
27692769
TR_ASSERT(curCompThreadInfoPT, "a thread's compinfo is missing\n");
27702770

27712771
TR_YesNoMaybe activate = shouldActivateNewCompThread();
2772-
if (activate == TR_no)
2772+
if (activate == TR_no || (activate == TR_maybe && _queueWeight == 0))
27732773
break;
27742774

27752775
curCompThreadInfoPT->resumeCompilationThread();

0 commit comments

Comments
 (0)