Unsafe.{get,put}-X-Unaligned; Efficient array comparison intrinsics

Paul Sandoz paul.sandoz at oracle.com
Wed Feb 25 08:27:51 UTC 2015

On Feb 25, 2015, at 12:20 AM, John Rose <john.r.rose at oracle.com> wrote:

> On Feb 24, 2015, at 7:49 AM, Andrew Haley <aph at redhat.com> wrote:
>>> There will be only one runtime Unsafe sub-type ever observed in a 
>>> particular VM.
>> Oh, that's very nice.
> That doesn't help with B accesses on L platforms and vice versa.
> Having an optional boolean parameter (gating reverseBytes) will help.

Yes, that's a good point.

> Also, it makes Unsafe non-final, which frankly gives me the willies.
> (Technical term, used by folks that have been through too many security escalations.)
> Let's not create any new ways for industrious hackers to attack Unsafe.

I was getting nervous about this too :-)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/attachments/20150225/e1f64cda/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/attachments/20150225/e1f64cda/signature.asc>

More information about the hotspot-compiler-dev mailing list