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 :-)
Paul.
More information about the core-libs-dev
mailing list