-
Notifications
You must be signed in to change notification settings - Fork 18
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
8277431: riscv: Intrinsify recursive ObjectMonitor locking for C2 #13
Conversation
👋 Welcome back yadongwang! A progress list of the required criteria for merging this PR into |
It would be interesting to know how this may affect performance on riscv. Maybe we can try DaCapo h2 to see. |
DaCapo results are updated. |
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.
The performance numbers looks great. Thanks.
@yadongw 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 1 new commit pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the 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 (@RealFYang) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
/integrate |
/sponsor |
@RealFYang @yadongw Pushed as commit a319e9a. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
According to https://bugs.openjdk.java.net/browse/JDK-8277180, the C2 fast_lock and fast_unlock intrinsics don't support recursive ObjectMonitor locking. Some workload can significantly benefit from this. This fixes the problem on riscv.
Tier1 tests of hotspot and jdk are passed on unmatched and all JTreg tests are tested on qemu without new failures.
The original performance regression after JDK-8253064 was resolved by this intrinsic.
The benchmark ran on unmatched:
Non-intrisified recursive fast_lock/fast_unlock:
===== DaCapo 9.12-MR1 h2 PASSED in 2614652 msec =====
Intrisified recursive fast_lock/fast_unlock:
===== DaCapo 9.12-MR1 h2 PASSED in 2027247 msec =====
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/riscv-port pull/13/head:pull/13
$ git checkout pull/13
Update a local copy of the PR:
$ git checkout pull/13
$ git pull https://git.openjdk.java.net/riscv-port pull/13/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 13
View PR using the GUI difftool:
$ git pr show -t 13
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/riscv-port/pull/13.diff