-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8373403: [TESTBUG] TestG1ClassUnloadingHWM.java could fail with large G1HeapRegionSize and small InitialHeapSize #28738
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
base: master
Are you sure you want to change the base?
Conversation
… G1HeapRegionSize and small InitialHeapSize
|
👋 Welcome back manc! A progress list of the required criteria for merging this PR into |
|
@caoman This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be: You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 23 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. ➡️ To integrate this PR with the above commit message to the |
Webrevs
|
|
The issue appears to be that we compute an IHOP target threshold that is smaller than the G1HeapRegionSize. So after the "Pause Full (Metadata GC Threshold)", a concurrent cycle is requested. Would it be better to fix that as below? |
|
I think this is a test bug: it should check whether the Metadata GCs is a full gc and not a young gc starting a concurrent mark. Right now the test just checks whether there is any full gc and not a concurrent start gc at all. The regexp should add a @walulyai' s comment hints at another issue: if there is only one region, there is no gain in collecting that region (unless, very unlikely, that single region is completely empty). Either the concurrent mark will select it as an evacuation candidate and copy its contents to another (single) region, or do nothing. Either way nothing is gained. However this is a different issue imo. |
Updated test to check Also filed https://bugs.openjdk.org/browse/JDK-8373461 for avoiding the unnecessary concurrent mark. |
One can check whether the concurrent start GC has the "Metadata GC Threshold" cause as well in the regexes. Young GC both have the cause (e.g. that "Metadata GC Threshold") as well as a type ("Concurrent Start").
Thank you. |
Thanks, done. Now we can keep the check in |
walulyai
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Hi all,
Could anyone review this test-only improvement to make TestG1ClassUnloadingHWM.java more robust in various configurations?
See https://bugs.openjdk.org/browse/JDK-8373403 for more details.
-Man
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/28738/head:pull/28738$ git checkout pull/28738Update a local copy of the PR:
$ git checkout pull/28738$ git pull https://git.openjdk.org/jdk.git pull/28738/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 28738View PR using the GUI difftool:
$ git pr show -t 28738Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/28738.diff
Using Webrev
Link to Webrev Comment