RFR: 8362515: RISC-V: cleanup NativeFarCall

Hamlin Li mli at openjdk.org
Thu Jul 17 14:22:25 UTC 2025


Hi,
Can you help to review this patch?

By https://github.com/openjdk/jdk/blob/master/src/hotspot/cpu/riscv/macroAssembler_riscv.hpp#L1270, there are far call, indirect call, reloc call.
NativeFarCall is in fact a reloc call, the name is confusing, better to rename it to RelocCall.
Also add some comments and do some other simple cleanup.

Thanks!

-------------

Commit messages:
 - initial commit

Changes: https://git.openjdk.org/jdk/pull/26370/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=26370&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8362515
  Stats: 59 lines in 1 file changed: 7 ins; 7 del; 45 mod
  Patch: https://git.openjdk.org/jdk/pull/26370.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/26370/head:pull/26370

PR: https://git.openjdk.org/jdk/pull/26370


More information about the hotspot-compiler-dev mailing list