-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
8334505: RISC-V: Several tests fail when MaxVectorSize does not match VM_Version::_initial_vector_length #19785
Conversation
… VM_Version::_initial_vector_length
👋 Welcome back gcao! A progress list of the required criteria for merging this PR into |
@zifeihan 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 81 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. 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 |
Webrevs
|
Yeah, most of the related RISC-V code was written under the assumption that MaxVectorSize matches |
@RealFYang : Thanks for the review. |
/sponsor |
Going to push as commit c66f785.
Your commit was automatically rebased without conflicts. |
@RealFYang @zifeihan Pushed as commit c66f785. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
HI, It's possible to specify a MaxVectorSize which is not equal to VM_Version::_initial_vector_length on RISC-V. For example, it could happen on Banana-Pi that MaxVectorSize equals 16, while VM_Version::_initial_vector_length is 32. This may lead to several jtreg test failures, see jbs issue for exception information.
The reason for this problem is that when spill vector registers into memory, the whole width of the register is used incorrectly, and MaxVectorSize should be used to handle the number of elements spill.
jdk/src/hotspot/cpu/riscv/c2_MacroAssembler_riscv.hpp
Lines 133 to 136 in 326dbb1
PR propose to simply set MaxVectorSize to VM_Version::_initial_vector_length for the following reasons:
After this patch, MaxVectorSize always equal to VM_Version::_initial_vector_length:
Testing
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/19785/head:pull/19785
$ git checkout pull/19785
Update a local copy of the PR:
$ git checkout pull/19785
$ git pull https://git.openjdk.org/jdk.git pull/19785/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 19785
View PR using the GUI difftool:
$ git pr show -t 19785
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/19785.diff
Webrev
Link to Webrev Comment