JDK-8364150 : RISC-V: Leftover for JDK-8343430 removing old trampoline call
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 26
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • CPU: riscv
  • Submitted: 2025-07-28
  • Updated: 2025-08-11
  • Resolved: 2025-07-30
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 26
26 b09Fixed
Related Reports
Relates :  
Description
JDK-8343430 removed the old trampoline call on RISC-V. And the new solution (reloc call) loads a target address from stub and do an indirect call.
This means the stub is always there for a NativeCall. So there's no need to check existence of the stub when doing `CallRelocation::fix_relocation_after_move`.
We can always return the stub address in `NativeCall::reloc_destination` and use that address in `NativeCall::reloc_set_destination`.
This helps simplify the code and saves one `MacroAssembler::target_addr_for_insn` call and one `trampoline_stub_Relocation::get_trampoline_for` call in these two functions respectively.
Comments
[jdk25u-fix-request] Approval Request from Dingli Zhang Backport to help reduce C2 call relocation overhead on riscv. This is a RISC-V specific change, should be low risk. Tests tier1-tier3 passed on sg2042.
09-08-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk25u/pull/79 Date: 2025-08-09 03:53:00 +0000
09-08-2025

Changeset: 3488f53d Branch: master Author: Fei Yang <fyang@openjdk.org> Date: 2025-07-30 01:02:31 +0000 URL: https://git.openjdk.org/jdk/commit/3488f53d2c3083bd886644684ec6885046ea7f8e
30-07-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/26495 Date: 2025-07-28 04:05:20 +0000
28-07-2025