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(