-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
8306667: RISC-V: Fix storeImmN0 matching rule by using zr register #13577
Conversation
👋 Welcome back xlinzheng! A progress list of the required criteria for merging this PR into |
@zhengxiaolinX The following label will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command. |
btw, should this also be backported to 17u-riscv ? after this PR is done |
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.
Sure, I can do that after verifying and merging this patch. |
Thanks for the review, Aleksey! |
A potential issue in the comment of iRegIHeapbase:
And unfortunately, They can be fixed together in a follow-up patch. Or only fix the |
Indeed, Though, I think the AArch64 backend does not have this issue because it has the P.S. Sorry for the delay in this fix - I have tested hotspot tier1~4 on QEMU but still not yet on an unmatched board since mine has other jobs to test. Will carry this fix on soon. |
|
Verified hotspot tier1~2 (fastdebug) on my machine. |
@zhengxiaolinX 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 4 new commits 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 (@shipilev, @lgxbslgx, @RealFYang) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
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
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. Looks good.
Thanks for reviewing! @lgxbslgx @RealFYang /integrate |
@zhengxiaolinX |
/sponsor |
Going to push as commit e32de7e.
Your commit was automatically rebased without conflicts. |
@RealFYang @zhengxiaolinX Pushed as commit e32de7e. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
The
storeImmN0
in the RISC-V backend missed aCompressedOops::base() == NULL
predication. Under non-zero-based compressed oops mode, thexheapbase
can be a non-zero value and crashes the VM.Reproduced by
<JDK>/bin/java -Xcomp -XX:HeapBaseMinAddress=72030M -version
simply. A hs_err file is attached in the JBS issue.x86 uses
r12
as a zero register instoreImmN0
, but RISC-V has a zero register so we can use it to implement the matching rule.Testing in progress.
Thanks,
Xiaolin
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/13577/head:pull/13577
$ git checkout pull/13577
Update a local copy of the PR:
$ git checkout pull/13577
$ git pull https://git.openjdk.org/jdk.git pull/13577/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 13577
View PR using the GUI difftool:
$ git pr show -t 13577
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/13577.diff
Webrev
Link to Webrev Comment