-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
8322484: 22-b26 Regression in J2dBench-bimg_misc-G1 (and more) on Windows-x64 and macOS-x64 #17552
8322484: 22-b26 Regression in J2dBench-bimg_misc-G1 (and more) on Windows-x64 and macOS-x64 #17552
Conversation
count atomic instructions executed Refactoring Fix -1 casting refactoring, fix loosing pin counts on thread exit refactoring, additional verification fix compilation and issue with parameter evaluation ordering Some more checking Cleanup missing comma in copyright newline at end of file in g1RegionPinCache.cpp
👋 Welcome back tschatzl! A progress list of the required criteria for merging this PR into |
Webrevs
|
@tschatzl 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 40 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 |
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.
One minor nit in comment. Otherwise looks good.
Thanks @albertnetymk @kimbarrett for your reviews |
Going to push as commit 0d5f5e1.
Your commit was automatically rebased without conflicts. |
/backport jdk22 |
@tschatzl the backport was successfully created on the branch backport-tschatzl-0d5f5e15 in my personal fork of openjdk/jdk22. To create a pull request with this backport targeting openjdk/jdk22:master, just click the following link: The title of the pull request is automatically filled in correctly and below you find a suggestion for the pull request body:
If you need to update the source branch of the pull then run the following commands in a local clone of your personal fork of openjdk/jdk22:
|
/backport jdk22u |
@tschatzl the backport was successfully created on the branch backport-tschatzl-0d5f5e15 in my personal fork of openjdk/jdk22u. To create a pull request with this backport targeting openjdk/jdk22u:master, just click the following link: The title of the pull request is automatically filled in correctly and below you find a suggestion for the pull request body:
If you need to update the source branch of the pull then run the following commands in a local clone of your personal fork of openjdk/jdk22u:
|
Hi all,
please review this improvement to managing region pin counts in g1.
Some applications do millions of
Get/ReleasePrimitiveArrayCritical
operations per second, in particular some of the j2dbench benchmarks (e.g. vimg_copyarea 10M/s), on some platforms. Every pin/unpin results in an atomic operation that is the cause for these slowdown.Only Windows seems to be significantly affected.
This suggested change implements a per-region thread local cache storing the current pin/unpin refcount difference, writing it back only when a thread pins/unpin an object in a different region.
For these benchmarks this often reduces the amount of atomic operations to none, or a few handful; the worst improvement I have seen is that effective atomic operations were reduced to 1/10th. Overall all the j2dbench benchmark scores improve.
There is a remaining issue with the
vimg_shapes_gradient
J2dbench subbenchmark: comparing the original results (before integration of region pinning) with latest jdk23 results, there is a regression of about 5%; this is caused by the backout of a bad compiler change (https://bugs.openjdk.org/browse/JDK-8322985). This will be fixed by its redo CR https://bugs.openjdk.org/browse/JDK-8323116.Testing: tier1-3, j2dbench, dacapo, specj*, renaissance benchmarks
Thanks,
Thomas
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/17552/head:pull/17552
$ git checkout pull/17552
Update a local copy of the PR:
$ git checkout pull/17552
$ git pull https://git.openjdk.org/jdk.git pull/17552/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 17552
View PR using the GUI difftool:
$ git pr show -t 17552
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/17552.diff
Webrev
Link to Webrev Comment