Missaligned memory accesses from JDK

Andrew Haley aph-open at littlepinkcloud.com
Mon Mar 27 09:55:08 UTC 2023


On 3/20/23 15:26, Vladimir Kempik wrote:
> Could you please suggest on best way to make emit_intX methods not perform misaligned memory stores ?

You should change emit_int16() to use Bytes::put_native_u2(). You should change
RiscV's put_native_u2() to do whatever the back end needs, respecting
AvoidUnalignedAccesses.

-- 
Andrew Haley  (he/him)
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
https://keybase.io/andrewhaley
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671



More information about the riscv-port-dev mailing list