RFR: 8340241: RISC-V: Returns mispredicted [v13]

Robbin Ehn rehn at openjdk.org
Wed Oct 16 07:23:27 UTC 2024


On Wed, 16 Oct 2024 05:14:02 GMT, Fei Yang <fyang at openjdk.org> wrote:

> BTW: Would you mind apply following small addon change? I think it cleans up the related code making it a bit more consistent. Thanks.
> 
> [21406-addon-change.diff.txt](https://github.com/user-attachments/files/17389440/21406-addon-change.diff.txt)

Sorry this is not correct, as this is missing relocations in some cases.
Hence we generate a plain `JAL`, which means when we relocate the code, the JAL imm is to large.
Thus we hit:
`assert(Assembler::is_simm21(offset) && ((offset % 2) == 0)) failed: offset (121960514) is too large to be patched in one jal instruction!`

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

PR Comment: https://git.openjdk.org/jdk/pull/21406#issuecomment-2415933840


More information about the hotspot-dev mailing list