-
Notifications
You must be signed in to change notification settings - Fork 6.1k
8344010: RISC-V: Zacas do not work with LW locking #22149
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 rehn! A progress list of the required criteria for merging this PR into |
@robehn 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 107 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.
Good catch. Thanks for carrying out the test. Looks good modulo one minor question.
Thanks! I found some failures in testing, investigating. Update: Which means zacas is still broken after this patch, but at least LW locking is working. |
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.
Nice catch and cleanup, looks much better!
Just one minor comment.
Thanks! |
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.
Thanks, current fix looks good!
Thanks! |
/integrate |
Going to push as commit ea7e722.
Your commit was automatically rebased without conflicts. |
Hi all, please consider.
Light weight locking fails:
(NOTE this second item can effect many other cases, unclear)
As the code becomes much cleaner by calling amocas_d/w directly I removed the aliases.
Which fixes the first issue with cas acquire.
By using t0 instead of result we fix the other issue.
This is a short bugfix, there are so many dragons here that I do not want to address them while fixing the bug.
There are also several performance optimizations we can do here, specially for LR/SC case.
So I'll do a couple of more iterations of this code in seperate PR's.
Testing a bunch of local cherry-picked tests which failed.
I'll start tier1 over the weekend.
Thanks, Robbin
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/22149/head:pull/22149
$ git checkout pull/22149
Update a local copy of the PR:
$ git checkout pull/22149
$ git pull https://git.openjdk.org/jdk.git pull/22149/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 22149
View PR using the GUI difftool:
$ git pr show -t 22149
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/22149.diff
Using Webrev
Link to Webrev Comment