RFR: 8351140: RISC-V: Intrinsify Unsafe::setMemory [v2]

Martin Doerr mdoerr at openjdk.org
Fri Mar 28 13:10:21 UTC 2025


On Fri, 28 Mar 2025 11:24:43 GMT, Anjian-Wen <duke at openjdk.org> wrote:

>> From [JDK-8329331](https://bugs.openjdk.org/browse/JDK-8329331), add riscv unsafe::setMemory intrinsic’s generator generate_unsafe_setmemory. This intrinsic optimizes about 15%-20% unsafe setmemory time
>
> Anjian-Wen has updated the pull request incrementally with one additional commit since the last revision:
> 
>   RISC-V: Intrinsify Unsafe::setMemory
>   
>   add unsafe memory check

It should work if you move `UnsafeMemoryAccessMark` into `generate_fill(_jbyte_fill)`. Not sure if that is desired. Also note that enter + leave are pointless in your code.

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

PR Comment: https://git.openjdk.org/jdk/pull/23890#issuecomment-2761317827


More information about the hotspot-compiler-dev mailing list