From 1a8a1dc1f509e806f4b3328aeff35cf795955bd3 Mon Sep 17 00:00:00 2001 From: Tobi Ajila Date: Tue, 4 Oct 2022 08:27:27 -0500 Subject: [PATCH] Perform checkpoint/restore GC instead of idle gc pre checkpoint Signed-off-by: Tobi Ajila --- runtime/criusupport/criusupport.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/runtime/criusupport/criusupport.cpp b/runtime/criusupport/criusupport.cpp index 75d99fc3e66..4082204232d 100644 --- a/runtime/criusupport/criusupport.cpp +++ b/runtime/criusupport/criusupport.cpp @@ -491,8 +491,7 @@ Java_org_eclipse_openj9_criu_CRIUSupport_checkpointJVMImpl(JNIEnv *env, /* trigger a GC to disclaim memory */ vm->memoryManagerFunctions->j9gc_modron_global_collect_with_overrides(currentThread, J9MMCONSTANT_EXPLICIT_GC_SYSTEM_GC); - /* TODO update this to J9MMCONSTANT_EXPLICIT_GC_PREPARE_FOR_CHECKPOINT */ - vm->memoryManagerFunctions->j9gc_modron_global_collect_with_overrides(currentThread, J9MMCONSTANT_EXPLICIT_GC_IDLE_GC); + vm->memoryManagerFunctions->j9gc_modron_global_collect_with_overrides(currentThread, J9MMCONSTANT_EXPLICIT_GC_PREPARE_FOR_CHECKPOINT); acquireSafeOrExcusiveVMAccess(currentThread, vmFuncs, safePoint);