RFR JDK-8141491: Unaligned memory access in Bits.c
Andrew Haley
aph at redhat.com
Wed Feb 3 09:43:03 UTC 2016
On 02/02/16 19:25, Mikael Vidstedt wrote:
> Please review this change which introduces a Copy::conjoint_swap and an
> Unsafe.copySwapMemory method to call it from Java, along with the
> necessary changes to have java.nio.Bits call it instead of the Bits.c code.
There doesn't seem to be any way to use a byte-swap instruction
in the swapping code. This will make it unnecessarily slow.
Andrew.
More information about the hotspot-dev
mailing list