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

Anjian-Wen duke at openjdk.org
Sun May 18 11:59:00 UTC 2025


On Sun, 18 May 2025 03:19:42 GMT, Feilong Jiang <fjiang at openjdk.org> wrote:

>> Anjian-Wen has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains one commit:
>> 
>>   RISC-V: Intrinsify Unsafe::setMemory
>
> src/hotspot/cpu/riscv/stubGenerator_riscv.cpp line 1743:
> 
>> 1741:     // Handle copies less than 8 bytes
>> 1742:     __ bind(L_fill_elements);
>> 1743:     __ beqz(count, L_exit);
> 
> If `count` may be zero, we can put `beqz` at the beginning of the stub.

Thanks,but I think there may be relatively fewer case when count is equal to 0 compare to not equal to 0,and it may not worth to execute a beqz at the entrance?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/23890#discussion_r2094502075


More information about the hotspot-compiler-dev mailing list