RFR: 8361449: RISC-V: Code cleanup for native call [v2]
Dingli Zhang
dzhang at openjdk.org
Mon Jul 14 03:52:39 UTC 2025
On Sat, 12 Jul 2025 08:13:00 GMT, Feilong Jiang <fjiang at openjdk.org> wrote:
>> Dingli Zhang has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Remove outdated comments
>
> src/hotspot/cpu/riscv/nativeInst_riscv.cpp line 156:
>
>> 154: if (code->is_nmethod()) {
>> 155: nmethod* nm = code->as_nmethod();
>> 156: stub_addr = trampoline_stub_Relocation::get_trampoline_for(call_addr, nm);
>
> Same here
> Suggestion:
>
> stub_addr = trampoline_stub_Relocation::get_trampoline_for(call_addr, code->as_nmethod());
Fixed.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/26150#discussion_r2203797452
More information about the hotspot-compiler-dev
mailing list