You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, this patch is a backport of openjdk/jdk#32387 . this is a risc-v specific change. risk is low.
This backport is not clean:
jdk17u-dev doesn't have predicate register support
In jdk17u-dev, the vector stack-to-stack copy goes through spill_copy_vector_stack_to_stack, where the data is transferred via v0 and t0 is only used for address computation (capable of handling large offsets), so there is no conflict. The scalar path's sd(t0, Address(sp, dst_offset)) only uses t0 as an address temporary when the offset exceeds simm12, which would clobber the value; therefore, only the scalar case's dst_offset needs to be checked.
Testing: the test TestRiscvLargeStackToStack.java[1], which previously had test failures, has now passed.
👋 Welcome back gcao! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.
/approval request
Same issue is there in jdk17u-dev repo. This is a RISC-V specific change, risk is low.
Testing: the test TestRiscvLargeStackToStack, which previously had test failures, has now passed.
❗ This change is not yet ready to be integrated.
See the Progress checklist in the description for automated requirements.
openjdkBot
changed the title
Backport 764e83c46c839164c137cd2f058c7cc2b6519dc6
8390441: RISC-V: Fix C2 stack-to-stack spill copies with large offsets
Aug 18, 2026
⚠️@zifeihan This change is now ready for you to apply for maintainer approval. This can be done directly in each associated issue or by using the /approval command.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
backportPort of a pull request already in a different code baserfrPull request is ready for review
3 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi, this patch is a backport of openjdk/jdk#32387 . this is a risc-v specific change. risk is low.
This backport is not clean:
Testing: the test TestRiscvLargeStackToStack.java[1], which previously had test failures, has now passed.
[1] https://bugs.openjdk.org/secure/attachment/121298/TestRiscvLargeStackToStack.java
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk17u-dev.git pull/4623/head:pull/4623$ git checkout pull/4623Update a local copy of the PR:
$ git checkout pull/4623$ git pull https://git.openjdk.org/jdk17u-dev.git pull/4623/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 4623View PR using the GUI difftool:
$ git pr show -t 4623Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk17u-dev/pull/4623.diff
Using Webrev
Link to Webrev Comment