RFR: 8368724: RISC-V: Remove AvoidUnalignedAccesses Flag [v6]

Hamlin Li mli at openjdk.org
Wed Oct 15 08:45:26 UTC 2025


On Wed, 15 Oct 2025 08:32:40 GMT, Anjian Wen <wenanjian at openjdk.org> wrote:

>> src/hotspot/cpu/riscv/vm_version_riscv.cpp line 161:
>> 
>>> 159:   }
>>> 160: 
>>> 161:   if (UseUnalignedAccesses) {
>> 
>> This doesn't look right to me. Because `UseUnalignedAccesses` is used before properly assigned. This option is set at L171.
>
> I get it, can we just move this set after L171 since there is no other place set UsePoly1305Intrinsics?

Nice catch.

Yes, this needs to be moved after L171.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/27510#discussion_r2431655796


More information about the hotspot-dev mailing list