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

Vladimir Ivanov vlivanov at openjdk.org
Thu Oct 16 21:23:04 UTC 2025


On Tue, 14 Oct 2025 05:52:51 GMT, Dingli Zhang <dzhang at openjdk.org> wrote:

>> Considering that the linux-riscv64 hwprobe syscall is not always usable for detecting support for misaligned vector access especially on old kernels, it makes sense to me that we should give the user a choice to decide.
>
> Hi @iwanowww What do you think?

I'm strongly in favor of improving detection logic. In the worst case, it would require performing a misaligned vector access during VM bootstrapping and checking whether it traps or not.

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

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


More information about the hotspot-dev mailing list