Skip to content

Commit 4524ee8

Browse files
authored
Merge pull request eclipse-openj9#20876 from luke-li-2003/CompileMethodAPIFlag
Consider the compileMethod() API in replenishInvocationCount() Assertion
2 parents 00929cf + 01824c4 commit 4524ee8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

runtime/compiler/control/CompilationThread.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11955,7 +11955,9 @@ TR::CompilationInfo::replenishInvocationCount(J9Method *method, TR::Compilation
1195511955
}
1195611956
else
1195711957
{
11958-
TR_ASSERT(false, "Unexpected value for method->extra = %p (method=%p)\n", TR::CompilationInfo::getJ9MethodExtra(method), method);
11958+
TR_ASSERT(comp->getOptimizationPlan()->isExplicitCompilation(),
11959+
"Unexpected value for method->extra = %p (method=%p)\n",
11960+
TR::CompilationInfo::getJ9MethodExtra(method), method);
1195911961
}
1196011962
}
1196111963

0 commit comments

Comments
 (0)