RFR: 8368722: Vector API intrinsics enabled wrongly on platforms without support for misaligned vector access [v3]

Dingli Zhang dzhang at openjdk.org
Wed Oct 22 02:34:14 UTC 2025


On Fri, 10 Oct 2025 01:47:15 GMT, Dingli Zhang <dzhang at openjdk.org> wrote:

>> src/hotspot/cpu/aarch64/vm_version_aarch64.hpp line 202:
>> 
>>> 200:   constexpr static bool supports_secondary_supers_table() { return true; }
>>> 201: 
>>> 202:   constexpr static bool supports_misaligned_vector_accesses() { return true; }
>> 
>> Does this `supports_misaligned_vector_accesses` equal to `AlignVector` option?
>
> For RISC-V, `supports_misaligned_vector_accesses` is only determined by hwprode, while `AlignVector` can also be modified by the user on platforms that support misaligned vector accesses.

The latest value for `supports_misaligned_vector_accesses` is the inverse of `AlignVector`. The determination logic is already reflected in `vm_version_riscv.cpp`.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/27506#discussion_r2450244586


More information about the hotspot-dev mailing list