RFR: 8305056: Avoid unaligned access in emit_intX methods if not enabled [v3]

Thomas Stuefe stuefe at openjdk.org
Thu Mar 30 15:18:49 UTC 2023


On Wed, 29 Mar 2023 16:36:17 GMT, Vladimir Kempik <vkempik at openjdk.org> wrote:

>> Please review this change which attempts to eliminate unaligned memory stores generated by emit_int16/32/64 methods on some platforms.
>> 
>> Primary aim is risc-v platform. But I had to change some code in ppc/arm32/x86 to prevent possible perf degradation.
>
> Vladimir Kempik has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Reduce code duplication

Sorry if I'm slow, but I do not understand this patch, and the JBS issue text does not help much. Why would the existing test for alignment not be sufficient to prevent unaligned access?

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

PR Comment: https://git.openjdk.org/jdk/pull/13227#issuecomment-1490487237


More information about the hotspot-compiler-dev mailing list