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

Paul Sandoz paul.sandoz at oracle.com
Mon Mar 9 15:10:13 UTC 2015


On Mar 6, 2015, at 7:50 PM, Andrew Haley <aph at redhat.com> wrote:

> I've tried to so everything I've been asked.  If this version passes
> muster with everyone I'll Javadoc all the public methods and fields
> and put it up for RFA next week.
> 

Do you want to tackle the single-address access methods as a follow up issue? If so that's fine.


> I guess it's going to need a lot of testing and security analysis.
> 

Not sure about the latter, but the former yes, i can help with that and sponsor if you like.


> I added versions of all {put,get} methods with the boolean bigEndian
> argument.  This makes HeapByteBuffer much cleaner, and it does not
> need to know the machine endianness at all.  I hope that's OK.
> 

Yes, i like the end result in HeapByteBuffer.

Paul.

> Andrew.
> 
> 
> http://cr.openjdk.java.net/~aph/unaligned.hotspot.4/
> http://cr.openjdk.java.net/~aph/unaligned.jdk.4/




More information about the core-libs-dev mailing list