diff --git a/runtime/compiler/control/CompilationThread.cpp b/runtime/compiler/control/CompilationThread.cpp index 725fd80f045..8802f1dc7cc 100644 --- a/runtime/compiler/control/CompilationThread.cpp +++ b/runtime/compiler/control/CompilationThread.cpp @@ -11955,7 +11955,9 @@ TR::CompilationInfo::replenishInvocationCount(J9Method *method, TR::Compilation } else { - TR_ASSERT(false, "Unexpected value for method->extra = %p (method=%p)\n", TR::CompilationInfo::getJ9MethodExtra(method), method); + TR_ASSERT(comp->getOptimizationPlan()->isExplicitCompilation(), + "Unexpected value for method->extra = %p (method=%p)\n", + TR::CompilationInfo::getJ9MethodExtra(method), method); } }