RFR: 8361449: RISC-V: Code cleanup for native call [v3]

Dingli Zhang dzhang at openjdk.org
Mon Jul 14 03:49:23 UTC 2025


> Hi, please consider this code cleanup change for native call.
> 
> This removes the address parameter for NativeCall::reloc_destination and NativeFarCall::reloc_destination.
> This also removes several unnecessary code blob related runtime checks turning them into assertions.
> 
> ### Testing
> * [x]  hs:tier1 - hs:tier3 tested with linux-riscv64 fastdebug build

Dingli Zhang has updated the pull request incrementally with two additional commits since the last revision:

 - Remove assert_lock for riscv
 - Use code->as_nmethod() directly in nativeInst_riscv.cpp

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/26150/files
  - new: https://git.openjdk.org/jdk/pull/26150/files/d7ff8e53..da45cf52

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=26150&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=26150&range=01-02

  Stats: 11 lines in 2 files changed: 0 ins; 3 del; 8 mod
  Patch: https://git.openjdk.org/jdk/pull/26150.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/26150/head:pull/26150

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


More information about the hotspot-compiler-dev mailing list