Skip to content

Commit

Permalink
Merge pull request #18059 from cjjdespres/store-if-delay
Browse files Browse the repository at this point in the history
Store JITServer AOT methods if they are delayed
  • Loading branch information
mpirvu committed Sep 1, 2023
2 parents 022a2a4 + ae32250 commit 2b34667
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion runtime/compiler/control/JITClientCompilationThread.cpp
Expand Up @@ -2969,7 +2969,12 @@ remoteCompilationEnd(J9VMThread *vmThread, TR::Compilation *comp, TR_ResolvedMet
}
#endif /* J9VM_INTERP_AOT_RUNTIME_SUPPORT */

if (!compInfo->getPersistentInfo()->getJITServerUseAOTCache() || shouldStoreRemoteAOTMethods)
// If we're not using the AOT cache, we still store by default. This avoids certain test failures in the short term.
// Also, if we've explicitly been requested by the user to delay method relocations then we need to store methods
// in the SCC to support that option.
if (comp->getPersistentInfo()->getJITServerAOTCacheDelayMethodRelocation() ||
!compInfo->getPersistentInfo()->getJITServerUseAOTCache() ||
shouldStoreRemoteAOTMethods)
{
J9ROMMethod *romMethod = comp->fej9()->getROMMethodFromRAMMethod(method);
TR::CompilationInfo::storeAOTInSharedCache(
Expand Down

0 comments on commit 2b34667

Please sign in to comment.