RFR: 8369947: Bytecode rewriting causes Java heap corruption on RISC-V
Fei Yang
fyang at openjdk.org
Fri Oct 17 07:06:08 UTC 2025
On Thu, 16 Oct 2025 15:23:28 GMT, Feilong Jiang <fjiang at openjdk.org> wrote:
> As discussed in https://github.com/openjdk/jdk/pull/27748#pullrequestreview-3341840431, the same issue occurs with the RISC-V port.
>
> Testing:
>
> - [x] tier1 - tier4 linux-riscv64 fastdebug
Hi, I am having some difficulty in understanding the issue.
@shipilev @theRealAph : For the aarch64 counterpart, shouldn't the `ldarb` at [1] prevent the reordering of `STR` of PBC and `STLR` of RFE? It's a load instruction with acquire semantics.
[1] https://github.com/openjdk/jdk/blob/master/src/hotspot/cpu/aarch64/templateTable_aarch64.cpp#L200
-------------
PR Comment: https://git.openjdk.org/jdk/pull/27850#issuecomment-3414146472
More information about the hotspot-compiler-dev
mailing list