Unsafe.{get,put}-X-Unaligned performance (original) (raw)

Andrew Haley aph at redhat.com
Wed Mar 11 17:39:36 UTC 2015


On 03/11/2015 05:38 PM, Vitaly Davidovich wrote:

private static final ByteOrder byteOrder 571 = unsafe.isBigEndian() ? ByteOrder.BIGENDIAN : ByteOrder.LITTLEENDIAN; 572 573 static ByteOrder byteOrder() { 574 if (byteOrder == null) 575 throw new Error("Unknown byte order"); 576 return byteOrder; 577 } 578

No need for null check in byteOrder() anymore, right?

OK, thx.

Andrew.



More information about the hotspot-compiler-dev mailing list