jdk icon indicating copy to clipboard operation
jdk copied to clipboard

8342882: RISC-V: Unify handling of jumps to runtime

Open RealFYang opened this issue 1 year ago • 4 comments

This fixes and unifies handling of jumps to runtime. Was previously discussed here [1]. ( Tagging @robehn ) Seems not reasonable for MacroAssembler::j(const Address &dest, Register temp) to directly delegate work to MacroAssembler::j(const address dest, Register temp) for literal Address. This could generate a plain JAL, which means when we relocate the code, but the JAL immediate could be too large. This change relaxes this constaint.

[1] https://github.com/openjdk/jdk/pull/21406#issuecomment-2415965656

Simply did a native fastdebug build and tried specjbb2005 workload. More testing on linux-riscv64 in progress.

  • [ ] tier1 - tier3 (release)
  • [ ] tier1 (fastdebug)

Progress

  • [x] Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • [x] Change must not contain extraneous whitespace
  • [x] Commit message must refer to an issue

Issue

  • JDK-8342882: RISC-V: Unify handling of jumps to runtime (Enhancement - P4)

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/21661/head:pull/21661
$ git checkout pull/21661

Update a local copy of the PR:
$ git checkout pull/21661
$ git pull https://git.openjdk.org/jdk.git pull/21661/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 21661

View PR using the GUI difftool:
$ git pr show -t 21661

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/21661.diff

Webrev

Link to Webrev Comment

RealFYang avatar Oct 23 '24 10:10 RealFYang

:wave: Welcome back fyang! 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.

bridgekeeper[bot] avatar Oct 23 '24 10:10 bridgekeeper[bot]

@RealFYang 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:

8342882: RISC-V: Unify handling of jumps to runtime

Reviewed-by: rehn

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 12 new commits pushed to the master branch:

  • 158b93d19a518d2b9d3d185e2d4c4dbff9c82aab: 8335912: Add an operation mode to the jar command when extracting to not overwriting existing files
  • 28d23ada6dde007ed60b8538cc159afc62d76db3: 8340177: Malformed system classes loaded by bootloader crash the JVM in product builds
  • 98403b75df0a0737bdf082231f38c5c0019fe4c9: 8342854: [JVMCI] Block secondary thread reporting a JVMCI fatal error
  • 9a7a850e2892990cf6755a0ccb19711816ad1b51: 8341939: SigningOptionsTest fails without Xcode with command line developer tools after JDK-8341443
  • de92fe375771315452fc5318abfd228fdd31c454: 8233451: (fs) Files.newInputStream() cannot be used with character special files
  • 002de860813ff6bac8c6392f8c10d1c30fc5c09c: 8342673: Test serviceability/jvmti/events/NotifyFramePopStressTest/NotifyFramePopStressTest.java failed: waited too long for notify
  • a21c558699646d44d071945c82203e2d68a4dcc3: 8342863: Use pattern matching for instanceof in equals methods of wrapper classes
  • e64f0798be64d334b3ec2a918687aafc2031a8b7: 8342582: user.region for formatting number no longer works for 21.0.5
  • 426da4bbad3a3eac15e8b17026ebad52b7c568ea: 8341975: Unable to set encoding for IO.println, IO.print and IO.readln
  • a522d216b5bebbf103e5a823f0bba22cf1508883: 8342858: Make target mac-jdk-bundle fails on chmod command
  • ... and 2 more: https://git.openjdk.org/jdk/compare/7131f053b0d26b62cbf0d8376ec117d6e8d79f9e...master

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 master branch, type /integrate in a new comment.

openjdk[bot] avatar Oct 23 '24 10:10 openjdk[bot]

@RealFYang The following label will be automatically applied to this pull request:

  • hotspot

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.

openjdk[bot] avatar Oct 23 '24 10:10 openjdk[bot]

Webrevs

mlbridge[bot] avatar Oct 23 '24 10:10 mlbridge[bot]

Thanks, looks good!

Hi, Thanks for the quick review. My local tier1-3 test on linux-riscv64 is good.

/integrate

RealFYang avatar Oct 24 '24 11:10 RealFYang

Going to push as commit 85774b713edf8782f162ac25b61ce99a77e116f4. Since your change was applied there have been 17 commits pushed to the master branch:

  • 2c31c8eeb42188ad6fd15eca50db4342cd791fb2: 8339730: Windows regression after removing ObjectMonitor Responsible
  • f0b130e54f33d3190640ce33c991e35f27e9f812: 8339296: Record deconstruction pattern in switch fails to compile
  • e96b4cf0a81914c6a615bb4f62ea3f139a4737f3: 8342387: C2 SuperWord: refactor and improve compiler/loopopts/superword/TestDependencyOffsets.java
  • f7a61fce949ea2d15ec09d295c643d0c2eabea1e: 8342931: ProblemList failing tests from JDK-8335912
  • 25c2f48d458bfd92423c311a887679ad3e1e4041: 8338544: Dedicated Array class descriptor implementation
  • 158b93d19a518d2b9d3d185e2d4c4dbff9c82aab: 8335912: Add an operation mode to the jar command when extracting to not overwriting existing files
  • 28d23ada6dde007ed60b8538cc159afc62d76db3: 8340177: Malformed system classes loaded by bootloader crash the JVM in product builds
  • 98403b75df0a0737bdf082231f38c5c0019fe4c9: 8342854: [JVMCI] Block secondary thread reporting a JVMCI fatal error
  • 9a7a850e2892990cf6755a0ccb19711816ad1b51: 8341939: SigningOptionsTest fails without Xcode with command line developer tools after JDK-8341443
  • de92fe375771315452fc5318abfd228fdd31c454: 8233451: (fs) Files.newInputStream() cannot be used with character special files
  • ... and 7 more: https://git.openjdk.org/jdk/compare/7131f053b0d26b62cbf0d8376ec117d6e8d79f9e...master

Your commit was automatically rebased without conflicts.

openjdk[bot] avatar Oct 24 '24 11:10 openjdk[bot]

@RealFYang Pushed as commit 85774b713edf8782f162ac25b61ce99a77e116f4.

:bulb: You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

openjdk[bot] avatar Oct 24 '24 11:10 openjdk[bot]