-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8252990: Intrinsify Unsafe.storeStoreFence #6136
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
Conversation
|
👋 Welcome back shade! A progress list of the required criteria for merging this PR into |
Webrevs
|
dholmes-ora
left a comment
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.
I'm certainly no JIT expert but the pattern for adding the new intrinsic seems consistent with the existing code.
Thanks,
David
|
@shipilev 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 99 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 |
TobiHartmann
left a comment
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.
That looks good to me.
Wanghuang-Huawei
left a comment
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
|
Finally revived my quiet AArch64 dev board, added AArch64 results, which are even better than ARM32. Updated PR with perf results. |
|
jcstress and tier1 passes on AArch64. Seems like we are good to go. /integrate |
|
Going to push as commit b7a06be.
Your commit was automatically rebased without conflicts. |
Unsafe.storeStoreFencecurrently delegates to strongerUnsafe.storeFence. We can teach compilers to map this directly to already existing rules that handleMemBarStoreStore. Like explicitLoadFence/StoreFence, we introduce the special node to differentiate explicit fence and implicit store-store barriers.storeStoreFenceis usually used to simulate safefinal-field like constructions in special JDK classes, likeConstantCallSiteand friends.Motivational performance difference on benchmarks from JDK-8276054 on ARM32 (Raspberry Pi 4):
The same thing on AArch64 (Raspberry Pi 3):
As expected, this does not affect x86_64 at all, because both
releaseandstoreStoreare effectively no-ops, only affecting compiler optimizations:Additional testing:
tier1tier1quickrunProgress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/6136/head:pull/6136$ git checkout pull/6136Update a local copy of the PR:
$ git checkout pull/6136$ git pull https://git.openjdk.java.net/jdk pull/6136/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 6136View PR using the GUI difftool:
$ git pr show -t 6136Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/6136.diff