RFR: 8362838: RISC-V: Incorrect matching rule leading to improper oop instruction encoding

Feilong Jiang fjiang at openjdk.org
Wed Jul 23 06:06:54 UTC 2025


On Wed, 23 Jul 2025 03:04:38 GMT, Yadong Wang <yadongwang at openjdk.org> wrote:

>> Same as [JDK-8361892](https://bugs.openjdk.org/browse/JDK-8361892), but for riscv.
>> 
>> Testing:
>> - [x] Tier1-3 & hotspot:tier4 on linux-riscv64
>
> LGTM. Can you confirm the generated code in the case of non-legal addresses for byte_map_base?

@yadongw  Thanks for the review!
> LGTM. Can you confirm the generated code in the case of non-legal addresses for byte_map_base?

Yes. I added some code to allocate the JNI handler around the byte_map_base (https://github.com/feilongjiang/jdk/commit/4c9b39d5657b5dc3fb52d78c73797da8348aeca2). We can reproduce the crash on RISC-V, and the crash is gone after applying the fix.

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

PR Comment: https://git.openjdk.org/jdk/pull/26318#issuecomment-3105877365


More information about the hotspot-compiler-dev mailing list