UnsafeAtomicityTest crashes on SPARC
Andrew Haley
aph at redhat.com
Wed Aug 31 13:48:48 UTC 2016
On 31/08/16 13:42, Alan Burlison wrote:
> That's because the relevant Hadoop code is a pile and assumes it
> will only ever run on architectures that support misaligned
> accesses. As it is using Unsafe to do so there is a case to be made
> that they are getting what they deserve, but on the other hand it
> means that they've created a Java app that will not run on all the
> platforms that Java supports.
>
> I know Unsafe is going away, I don't know if the replacement will
> prevent or allow similar misaligned accesses.
This is just a lexicographic comparison in Hadoop. We do have
misaligned accesses in the new Unsafe, but it's internal. But I would
have thought the Hadoop code should use Arrays.compare.
Andrew.
More information about the hotspot-runtime-dev
mailing list