RFR: 8368724: RISC-V: Check if unaligned_access is enabled before use

Anjian Wen wenanjian at openjdk.org
Fri Sep 26 09:56:43 UTC 2025


On Fri, 26 Sep 2025 08:31:05 GMT, Hamlin Li <mli at openjdk.org> wrote:

> I think we're going to remove the `AvoidUnalignedAccesses`? And if `unaligned_access` is not enabled, then its value can not be `MISALIGNED_FAST`? If both above are true, then seems this check is not necessary?

@Hamlin-Li  Thanks for your review. 
According to the current use of `unaligned_access.value`, if it is not enabled, then using value will depend on the default value `-1`. This change is to try to make the use of `unaligned_access.value` more reasonable.
Maybe we can keep this judgment and consider removing the Avoid flag latter?

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

PR Comment: https://git.openjdk.org/jdk/pull/27510#issuecomment-3337787821


More information about the hotspot-dev mailing list