RFR: 8368366: RISC-V: AlignVector is mistakenly set to AvoidUnalignedAccesses

Fei Yang fyang at openjdk.org
Wed Sep 24 02:40:19 UTC 2025


On Tue, 23 Sep 2025 10:39:51 GMT, Robbin Ehn <rehn at openjdk.org> wrote:

> Yes, thanks, I think you are on the right track.

Thanks for confirming that.

> But an additional thing: if user sets "-XX:-UseUnalignedAccesses" I think that should be enought to stop all of them all. Also I'm doubt ful of the usefulness of Avoid flag. I don't see any case where I would have Avoid = false but also UseUnAl= false. Right now I always use Avoid = !UseUnal.

And I use it the same way as you do. `AvoidUnalignedAccesses` is derived from the aarch64 counterpart. I guess maybe it's time to let it go.

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

PR Comment: https://git.openjdk.org/jdk/pull/27445#issuecomment-3326225572


More information about the hotspot-dev mailing list