Unsafe.{get,put}-X-Unaligned; Efficient array comparison intrinsics
John Rose
john.r.rose at oracle.com
Fri Mar 6 22:37:08 UTC 2015
Wow, this looks excellent. I send a summary to panama-dev, FYI:
http://mail.openjdk.java.net/pipermail/panama-dev/2015-March/000098.html
That note has some discussion of atomicity which you might want to incorporate when you write the javadoc.
— John
On Mar 6, 2015, at 10:50 AM, 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.
>
> I guess it's going to need a lot of testing and security analysis.
>
> 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.
>
> Andrew.
>
>
> http://cr.openjdk.java.net/~aph/unaligned.hotspot.4/
> http://cr.openjdk.java.net/~aph/unaligned.jdk.4/
More information about the hotspot-compiler-dev
mailing list