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

John Rose john.r.rose at oracle.com
Tue Feb 24 23:20:52 UTC 2015


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.

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.

— John


More information about the core-libs-dev mailing list