-
Notifications
You must be signed in to change notification settings - Fork 61
8298215: gc/g1/TestVerifyGCType.java failed with "Missing expected verification pattern Verifying After GC for: Pause Young (Prepare Mixed): expected true, was false" #52
Conversation
👋 Welcome back kbarrett! A progress list of the required criteria for merging this PR into |
@kimbarrett The following label will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command. |
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.
Lgtm!
Pre-existing issue:
update_young_length_bounds
at the end of gc and update_young_length_bounds
in revise_young_list_target_length
are called with different tuning parameters. Thus, they are often giving totally contradicting values for targets.
@kimbarrett 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 no new commits pushed to the ➡️ To integrate this PR with the above commit message to the |
Yes, and the update at the end of gc is almost a waste of time - since JDK-8137022 it will be revised almost immediately after the gc safepoint ends. |
/integrate |
Going to push as commit ea40f29.
Your commit was automatically rebased without conflicts. |
@kimbarrett Pushed as commit ea40f29. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Please review this fix to the calculation of the number of young regions to use.
That calculation was recently changed (JDK-8297186), but that change has a
problem. It ensures the desired number of young regions calculated at the end
of a collection includes at least one eden region, to ensure progress is made.
It accomplished this by ensuring the minimum length was the number of already
allocated regions + 1 when doing the calculation at the end of a GC. But for
a revision of the length during the mutator phase it intentionally didn't do
that, as we want to trigger a collection rather than forceably expand.
However, a revision may occur immediately after the GC (indeed that's fairly
likely after JDK-8137022).
A better calculation is to ensure the desired number of young regions is at
least the number of survivor regions + 1. (That's effectively what the old
code was doing in the end-of-GC calculation, since at that time all allocated
regions are survivor regions.) So that's the basic change. This also removes
the need to distinguish between updating for GC or during the mutator phase
that was introduced by JDK-8297186 (the "after-gc" argument).
Also changed the test to also include the subprocess log in the error message
when the check for verification messages fails, to aid any future debugging.
Testing:
mach5 tier1-3. This isn't all that revealing, since the test failure was very
intermittent.
Hand tested with my changes to address JDK-8293824. With just those changes
the test was failing pretty reliably (instead of intermittently). Adding the
changes proposed here lets that test (seemingly) reliably pass. (There might
still be some work to do for JDK-8293824.)
There are some naming and description comment improvements around
update_young_length_bounds that I'd like to make, but I'm deferring those as a
separate RFE and keeping this bug fix fairly minimal.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk20 pull/52/head:pull/52
$ git checkout pull/52
Update a local copy of the PR:
$ git checkout pull/52
$ git pull https://git.openjdk.org/jdk20 pull/52/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 52
View PR using the GUI difftool:
$ git pr show -t 52
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk20/pull/52.diff