RFR JDK-8141491: Unaligned memory access in Bits.c
aph at redhat.com
Tue Jan 26 09:04:55 UTC 2016
On 26/01/16 04:57, Mikael Vidstedt wrote:
> I've finally found some time to return to this and have a new version of
> the patch which looks more promising:
> This uses memcpy to read/write the native data and the preliminary
> benchmark numbers on linux/x64 shows the expected performance. I'll work
> on verifying that it doesn't impact other platforms negatively over the
> next days/weeks.
I agree that memcpy is the right thing to use. It's portable and is
inlined well on production-quality C compilers.
More information about the hotspot-dev