Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add stronger guarantees to System.gc() #18044

Merged
merged 1 commit into from
Aug 31, 2023
Merged

Commits on Aug 30, 2023

  1. Add stronger guarantees to System.gc()

    The JCL code expects that when System.GC() is called a GC occurs and
    finalizable objects are finalized. Historically, J9 has never provided
    this guarantee. We have often had to modify tests to ensure a GC is
    triggered at the appropriate time. Increasingly, we are finding that
    more and more tests rely on this behaviour, and most importantly, core
    JCL code now relies on this behaviour. This PR ensures that a call to
    System.gc() triggers a GC and runs finalization.
    
    Signed-off-by: tajila <[email protected]>
    tajila committed Aug 30, 2023
    Configuration menu
    Copy the full SHA
    213d001 View commit details
    Browse the repository at this point in the history