RFR: 8351140: RISC-V: Intrinsify Unsafe::setMemory [v10]
Feilong Jiang
fjiang at openjdk.org
Mon May 19 06:11:55 UTC 2025
On Sun, 18 May 2025 11:56:24 GMT, Anjian-Wen <duke at openjdk.org> wrote:
>> 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?
This makes sense, so let's just leave it as it is.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/23890#discussion_r2094905144
More information about the hotspot-compiler-dev
mailing list