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

Fei Yang fyang at openjdk.org
Wed Oct 16 07:40:20 UTC 2024


On Wed, 16 Oct 2024 07:20:36 GMT, Robbin Ehn <rehn 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!`

Oops ... I think I missed it. Just forget about it. I will take a look at it later.

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

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


More information about the hotspot-dev mailing list