-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
8194823: Serial GC does not account GCs caused by TLAB allocation in GC overhead limit #14120
Conversation
👋 Welcome back gli! A progress list of the required criteria for merging this PR into |
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.
Lgtm apart from parameter list formatting issues. Please fix before committing.
It's a bit unfortunate that support for this feature for one collector causes so many changes everywhere else. (But also indicates an issue with all other collectors not supporting it ;)). Maybe the parameters could be wrapped into something like an "AllocationRequest", but this is a) a separate issue, and b) needs to be discussed first with others.
@lgxbslgx 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 33 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 |
@tschatzl Thanks for the review. I fixed the formatting issues just now. |
Do you have a small example to trigger |
I re-read the related code and now I think you are right. Currently, only the parallel GC supports Several problems need to be confirmed before continuing the work: The |
I can't see any dependency btw them after skimming through their specification. Worth investigation in its own ticket/PR. Some background which might be useful, "UseGCOverheadLimit can work independently of UseAdaptiveSizePolicy" from https://bugs.openjdk.org/browse/JDK-8212206
I am leaned towards removing it, as it is effectively dead code. |
Filed https://bugs.openjdk.org/browse/JDK-8308983 to follow up.
I also think it is good to remove it. |
I think it's best to do the removing in another ticket/PR and link the two tickets. |
Filed https://bugs.openjdk.org/browse/JDK-8309265 to follow up. Closing this one. |
Hi all,
This patch enables the gc overhead limit when allocating TLAB in serial gc.
The main modification is at
GenCollectedHeap::allocate_new_tlab
and the otherfiles only adjust the parameters of the method
allocate_new_tlab
.Thanks for the review.
Best Regards,
-- Guoxiong
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/14120/head:pull/14120
$ git checkout pull/14120
Update a local copy of the PR:
$ git checkout pull/14120
$ git pull https://git.openjdk.org/jdk.git pull/14120/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 14120
View PR using the GUI difftool:
$ git pr show -t 14120
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/14120.diff
Webrev
Link to Webrev Comment