Skip to content

Commit

Permalink
Merge pull request #18391 from singh264/openj9_issues_17731
Browse files Browse the repository at this point in the history
Ensure thread GC environment exists during restore
  • Loading branch information
tajila authored Nov 3, 2023
2 parents a00333d + 7c5ca1a commit 9485b48
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -819,6 +819,7 @@ public synchronized void checkpointJVM() {
SecurityProviders.registerRestoreSecurityProviders();

J9InternalCheckpointHookAPI.runPreCheckpointHooksConcurrentThread();
System.gc();
try {
checkpointJVMImpl(imageDir, leaveRunning, shellJob, extUnixSupport, logLevel, logFile, fileLocks,
workDir, tcpEstablished, autoDedup, trackMemory, unprivileged, optionsFile, envFilePath);
Expand Down

0 comments on commit 9485b48

Please sign in to comment.