From a5a553669a724d4a52dd4c543d83635efe94fb21 Mon Sep 17 00:00:00 2001 From: Christian Despres Date: Mon, 28 Aug 2023 19:52:18 +0000 Subject: [PATCH] Expand default local storage of remote AOT methods Remotely-compiled AOT methods will now be stored in the local SCC by default if the JITServer AOT cache is not being used. This avoids failures in certain tests that implicitly assume that such methods will be stored in the local SCC. Signed-off-by: Christian Despres --- runtime/compiler/control/JITClientCompilationThread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/compiler/control/JITClientCompilationThread.cpp b/runtime/compiler/control/JITClientCompilationThread.cpp index 7585b5393b8..6fb3f93f327 100644 --- a/runtime/compiler/control/JITClientCompilationThread.cpp +++ b/runtime/compiler/control/JITClientCompilationThread.cpp @@ -2969,7 +2969,7 @@ remoteCompilationEnd(J9VMThread *vmThread, TR::Compilation *comp, TR_ResolvedMet } #endif /* J9VM_INTERP_AOT_RUNTIME_SUPPORT */ - if (shouldStoreRemoteAOTMethods) + if (!compInfo->getPersistentInfo()->getJITServerUseAOTCache() || shouldStoreRemoteAOTMethods) { J9ROMMethod *romMethod = comp->fej9()->getROMMethodFromRAMMethod(method); TR::CompilationInfo::storeAOTInSharedCache(