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
8296170: Refactor stack-locking path in C2_MacroAssembler::fast_unlock() #10936
Conversation
👋 Welcome back rkennke! A progress list of the required criteria for merging this PR into |
Webrevs
|
} | ||
#endif | ||
|
||
// TODO: Comment still valid? |
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.
We have the same comment here:
// DONE_LABEL is a hot target - we'd really like to place it at the |
And it seems to be there from the beginning:
https://hg.openjdk.java.net/jdk/jdk/annotate/74aaad871363/hotspot/src/cpu/x86/vm/x86_32.ad#l3441
I think instead of adding a TODO
, we should either completely remove the comments or file a follow-up enhancement to investigate.
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 decided to remove the TODO. If we were to optimize this, then there are probably lower-hanging fruits like looking at the subsequent branch after the DONE_LABEL where we jump around the counting code.
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.
Looks reasonable to me but I'm not an expert in that code.
@rkennke 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 no new commits pushed to the ➡️ 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.
The changes net to no change to the executed code, so also lgtm.
There is, however, a pre-submit linux-x86 tier1 test failure that should be resolved.
Yes, that is a known issue. #11065 should fix it, I will pull in latest master and let GHA run again. |
Thanks for reviewing! GHA is green now, let's |
Going to push as commit e81359f.
Your commit was automatically rebased without conflicts. |
The code in C2_MacroAssembler::fast_unlock() has several (minor) issues:
Testing:
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk pull/10936/head:pull/10936
$ git checkout pull/10936
Update a local copy of the PR:
$ git checkout pull/10936
$ git pull https://git.openjdk.org/jdk pull/10936/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 10936
View PR using the GUI difftool:
$ git pr show -t 10936
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/10936.diff