Skip to content

Commit

Permalink
Perform checkpoint/restore GC instead of idle gc pre checkpoint
Browse files Browse the repository at this point in the history
Signed-off-by: Tobi Ajila <atobia@ca.ibm.com>
  • Loading branch information
tajila committed Oct 4, 2022
1 parent 9a9a576 commit 1a8a1dc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions runtime/criusupport/criusupport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 1a8a1dc

Please sign in to comment.