From caecc240bc29d0492a74121a0574bcf8119af6e7 Mon Sep 17 00:00:00 2001 From: Marius Pirvu Date: Tue, 14 Jan 2025 08:50:26 -0500 Subject: [PATCH] Change -Xtune:throughput to disable AOT This change improves throughput, footprint and CompCPU while possibly affecting rampup. However, since the goal is to have to best throughput possible in the long run, this change is justified. Signed-off-by: Marius Pirvu --- runtime/compiler/control/DLLMain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/compiler/control/DLLMain.cpp b/runtime/compiler/control/DLLMain.cpp index 9cff5b919cb..25e1f5090bc 100644 --- a/runtime/compiler/control/DLLMain.cpp +++ b/runtime/compiler/control/DLLMain.cpp @@ -505,7 +505,7 @@ IDATA J9VMDllMain(J9JavaVM* vm, IDATA stage, void * reserved) #if defined(J9VM_OPT_SHARED_CLASSES) // ENABLE_AOT must be set AND the shared class must be properly initialized UDATA aotFlags = J9SHR_RUNTIMEFLAG_CACHE_INITIALIZATION_COMPLETE; - if (vm->sharedClassConfig && ((vm->sharedClassConfig->runtimeFlags & aotFlags) == aotFlags)) + if (vm->sharedClassConfig && ((vm->sharedClassConfig->runtimeFlags & aotFlags) == aotFlags) && TR::Options::getAggressivityLevel() != OMR::Options::AGGRESSIVE_THROUGHPUT) { TR::Options::setSharedClassCache(true); // Set to true as long as cache is present and initialized