RFR: 8367692: RISC-V: Align post call nop [v3]
Robbin Ehn
rehn at openjdk.org
Thu Sep 25 12:10:16 UTC 2025
On Thu, 25 Sep 2025 12:03:37 GMT, Robbin Ehn <rehn at openjdk.org> wrote:
>> Mind you that the `nop()` and `li32(zr, 0)` are the `callback` for the relocate. And this callback is invoked under a IncompressibleScope [1].
>>
>> [1] https://github.com/openjdk/jdk/blob/master/src/hotspot/cpu/riscv/assembler_riscv.hpp#L2851
>
> But that is just another hack to avoid c-instructions, as the post call nop instructions are location independent.
> Removed the relocation.
Oh, wait the relocation is needed to find them, right?
Darn we need the relocation.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/27467#discussion_r2378861432
More information about the hotspot-dev
mailing list