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

Quan Anh Mai qamai at openjdk.org
Thu Mar 30 16:32:01 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

It would probably be more efficient if you just use `memcpy` and let the compiler figure out the best method to do memory accesses.

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

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


More information about the hotspot-compiler-dev mailing list