[9] RFR of 8140630: java/nio/Buffer/Basic.java crashes vm on linux-x64 using latest devkit to build
Brian Burkhalter
brian.burkhalter at oracle.com
Thu Nov 5 04:12:57 UTC 2015
On Nov 4, 2015, at 2:12 PM, Martin Buchholz <martinrb at google.com> wrote:
> At Google, we've also noticed crashes in Bits.c with recent gcc.
> Adding nio-dev, since this is not really a build problem.
Agreed. The posted patch is not intended to be a final solution.
> It appears that Bits.c is resorting to undefined behavior, even though there is a long tradition of unaligned access on x86 being permitted by the hardware.
>
> My colleague Alexander Smundak has also been looking at this, and is trying to actually fix Bits.c.
Any suggestions here would be welcome.
> I've also been thinking about this a little. When compiling on x86 with gcc, we might want to use attribute(aligned(...)) to keep gcc from making unwarranted assumptions about alignment.
>
> I think Andrew Haley has also been thinking about efficient array/buffer operations?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/nio-dev/attachments/20151104/79510f6a/attachment.html>
More information about the nio-dev
mailing list