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
8250597: G1: Improve inlining around trim_queue #26
Conversation
👋 Welcome back dchuyko! A progress list of the required criteria for merging this PR into |
This backport pull request has now been updated with issue and summary from the original commit. |
G1ParScanThreadState::trim_queue(): G1ParScanThreadState::do_oop_evac(): [G1ParScanThreadState::do_partial_array()] [G1ParScanThreadState::dispatch_task()] G1ParScanThreadState::needs_partial_trimming(): G1ParScanThreadState::trim_queue_to_threshold() G1ParScanThreadState::steal_and_trim_queue(): G1ParScanThreadState::allocate_copy_slow(): G1ParScanThreadState::undo_allocation(): G1ParScanThreadState::copy_to_survivor_space(): G1ParScanThreadState::handle_evacuation_failure_par(): G1ParScanThreadState::is_partially_trimmed(): G1ParScanThreadState::trim_queue_partially(): G1ParScanThreadState::trim_queue(): ATTRIBUTE_FLATTEN Manually inline deal_with_reference()-s into G1ParScanThreadState::dispatch_reference(). |
Mailing list message from Dmitry Chuyko on jdk-updates-dev: CC'ing hotspot-gc-dev. On 6/11/21 5:08 PM, Dmitry Chuyko wrote: |
1 similar comment
Mailing list message from Dmitry Chuyko on jdk-updates-dev: CC'ing hotspot-gc-dev. On 6/11/21 5:08 PM, Dmitry Chuyko wrote: |
@dchuyko This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration! |
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.
@dchuyko This change now passes all automated pre-integration checks. 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 488 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. As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@phohensee) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
@dchuyko This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration! |
@dchuyko This pull request has been inactive for more than 8 weeks and will now be automatically closed. If you would like to continue working on this pull request in the future, feel free to reopen it! This can be done using the |
This change improves latency with G1 in some cases and makes trim_queue() code structure closer to current mainline.
The original patch does not apply cleanly in particular because of https://bugs.openjdk.java.net/browse/JDK-8200545 . However the refactoring is rather simple because it is a rearrangement of code between functions with compiler hints. It has been reproduced (short description in the next comment).
The change is isolated and is a set of code moves so the risk is low.
Testing: tier1, tier2 on aarch64 and x86_64 in development, the change has been included in Liberica JDK 11u EA for some time.
As an example of performance improvement, Critical-jOPS on Graviton2 raised +1%:+6.2% for 8GB heap.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk11u-dev pull/26/head:pull/26
$ git checkout pull/26
Update a local copy of the PR:
$ git checkout pull/26
$ git pull https://git.openjdk.java.net/jdk11u-dev pull/26/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 26
View PR using the GUI difftool:
$ git pr show -t 26
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk11u-dev/pull/26.diff