Skip to content

Commit

Permalink
Base interface inlining determination directly on VM startup phase
Browse files Browse the repository at this point in the history
The JIT can re-enter STARTUP_STATE after leaving it, and it can remain
in that state for much longer than one might naively expect, inhibiting
these heuristics.
  • Loading branch information
jdmpapin committed Sep 22, 2022
1 parent a628c77 commit 6dbf777
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/compiler/optimizer/J9Inliner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,7 @@ bool TR_J9InterfaceCallSite::findCallSiteTargetImpl(TR_CallStack *callStack, TR_
// won't be extended later.
bool useVftTestHeuristics = true;
TR::PersistentInfo *persistInfo = comp()->getPersistentInfo();
if (persistInfo->getJitState() == STARTUP_STATE)
if (TR::Compiler->vm.isVMInStartupPhase(comp()->fej9()->getJ9JITConfig()))
{
const static bool useVftTestHeuristicsDuringStartup =
feGetEnv("TR_useInterfaceVftTestHeuristicsDuringStartup") != NULL;
Expand Down

0 comments on commit 6dbf777

Please sign in to comment.