Skip to content

Commit

Permalink
Merge pull request #16035 from tajila/criu3
Browse files Browse the repository at this point in the history
Perform checkpoint/restore GC instead of idle gc pre checkpoint
  • Loading branch information
amicic committed Oct 4, 2022
2 parents 51eae9e + 1a8a1dc commit 96fe9b8
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 @@ -494,8 +494,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 96fe9b8

Please sign in to comment.