-
Notifications
You must be signed in to change notification settings - Fork 721
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
Remove duplicate System.gc() in test #18335
Comments
Sign me up, please. I would like to try this issue :) |
I would also love to work on the issue :) |
Additional tests that need to be cleaned up:
|
Thanks, I'll fix them as well.
|
re #18335 (comment), @pshipton @TobiAjila Do you happen to know why we call |
We've needed to call gc() twice because J9 doesn't always respect it the first time. Calling it twice guarantees that at least 1 GC occurs. This is no longer required in the latest JDKs
Sometimes finalizable objects are created as a result of running finalizers. Calling it twice provides a better guarantee that all finalizable objects are cleared. |
Some tests call GC twice.
https://github.com/eclipse-openj9/openj9/blob/fadb895178d06504a9e0ff7d6d8963879cb45a28/test/functional/Valhalla/src/org/openj9/test/lworld/ValueTypeTests.java#L357..%23L358
This is no longer needed in the tests (see #18044). We should clean it up and call System.gc() once.
FYI @dmitripivkine
The text was updated successfully, but these errors were encountered: