-
Notifications
You must be signed in to change notification settings - Fork 6.3k
8368152: Shenandoah: Incorrect behavior at end of degenerated cycle #27456
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
8368152: Shenandoah: Incorrect behavior at end of degenerated cycle #27456
Conversation
👋 Welcome back wkemper! A progress list of the required criteria for merging this PR into |
@earthling-amzn 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 24 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 |
@earthling-amzn The following labels 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 lists. If you would like to change these labels, use the /label pull request command. |
Webrevs
|
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.
A common scenario that I have seen in various GC logs is the following:
- Concurrent GC experiences allocation failure and degenerates
- Degenerated GC fails to make progress because lots of garbage was allocated after the start of concurrent marking (ie. all garbage is floating)
- We escalate to Full GC, resulting in a very long STW delay (The Full GC delay plus the delay for degen that preceded Full GC)
- It is often the case that better throughput and better latency is realized if we run a concurrent GC which may once again degenerate, rather than escalating from the first degen to Full GC. All of the floating garbage that was locked up during the previous GC should be reclaimed by the second concurrent (possibly degenerated) GC, so the second cycle should have "good progress" even if the first did not.
- I believe the solution you've implemented here will first try a second concurrent/degenerated cycle before escalating to Full GC. Will you confirm that?
Should we have some comments in this code to explain why CONSECUTIVE_BAD_DEGEN_PROGRESS_THRESHOLD is 2 and not 1?
There is a comment in |
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; left some documentation nits, but approved even if the documentation suggestions aren't taken.
🚢
Also, independently, I think the notion of progress should be clarified based on current implementation in
I found it slightly confusing that even though a May be I am missing something? |
You're right that the |
/integrate |
Going to push as commit f36c33c.
Your commit was automatically rebased without conflicts. |
@earthling-amzn Pushed as commit f36c33c. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
There are several issues addressed in this PR:
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/27456/head:pull/27456
$ git checkout pull/27456
Update a local copy of the PR:
$ git checkout pull/27456
$ git pull https://git.openjdk.org/jdk.git pull/27456/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 27456
View PR using the GUI difftool:
$ git pr show -t 27456
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/27456.diff
Using Webrev
Link to Webrev Comment