Skip to content

Commit

Permalink
Add comment to System.gc() changes
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 Sep 1, 2023
1 parent 2cbea41 commit a00873b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions runtime/sunvmi/sunvmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,7 @@ JVM_GC_Impl(void)
vmFuncs->internalAcquireVMAccess(currentThread);
#endif /* J9VM_INTERP_ATOMIC_FREE_JNI */

/* Two GC requests are required to guarantee a GC actually occurs. */
mmFuncs->j9gc_modron_global_collect(currentThread);
mmFuncs->j9gc_modron_global_collect(currentThread);

Expand Down

0 comments on commit a00873b

Please sign in to comment.