-
Notifications
You must be signed in to change notification settings - Fork 224
8350483: AArch64: turn on signum intrinsics by default on Ampere CPUs #3300
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
base: master
Are you sure you want to change the base?
8350483: AArch64: turn on signum intrinsics by default on Ampere CPUs #3300
Conversation
Signed-off-by: Patrick Zhang <[email protected]>
👋 Welcome back qpzhang! A progress list of the required criteria for merging this PR into |
❗ This change is not yet ready to be integrated. |
This backport pull request has now been updated with issue from the original commit. |
|
/approval request Resolved a merging conflict as the auto backport covered a piece of unrelated code change on |
@cnqpzhang |
Hi @cnqpzhang , |
Thanks for your comments, @GoeLin . |
@cnqpzhang 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! |
/approval cancel |
@cnqpzhang |
Status update: backport to 24 has been done (merged), and the operation to 21 is waiting for a dependent change, and 17 would follow up. |
/approval request Should get backported to 17u for parity with 21u and 24u which have been done. Low risk and tier1 tests and other sanity checks pass on Ampere-1A systems. Initially intended as a performance optimization but later on found saving up to 80~100x performance defect in certain extreme cases. The issue severely impacted |
@cnqpzhang |
Hi @cnqpzhang |
Not a regression, the option was only enabled for some specific CPUs while this commit/backport extends its benefit to more. |
Backport the commit to set -XX:+UseSignumIntrinsic by default for Ampere CPUs. It is to fix performance problem observed on JMH cases
vm.compiler.Signum|java.lang.*MathBench.sig[nN]um*
. For example,vm.compiler.Signum._1_signumFloatTest
thrpt score becomes 30x better on both jdk mainline and jdk17u-dev. The backporting can be very safe as it is limited to Ampere CPUs only and well verified on Ampere-1A with related jmh and jtreg tier1 tests.Progress
Issue
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk17u-dev.git pull/3300/head:pull/3300
$ git checkout pull/3300
Update a local copy of the PR:
$ git checkout pull/3300
$ git pull https://git.openjdk.org/jdk17u-dev.git pull/3300/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 3300
View PR using the GUI difftool:
$ git pr show -t 3300
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk17u-dev/pull/3300.diff
Using Webrev
Link to Webrev Comment