RFR: 8073093: AARCH64: C2 generates poor code for ByteBuffer accesses

Andrew Haley aph at redhat.com
Wed Feb 18 16:00:05 UTC 2015


On 02/18/2015 02:32 PM, David M. Lloyd wrote:
> It's an awful lot of pain to avoid what IMO should be an obvious addition:
> 
> (Short|Character|Integer|Long).(get|put)(Little|Big)EndianBytes([value,] 
> byte[] b, int offs)
> 
> This could (it seems to me) be easily intrinsified, is hugely useful 
> both within and outside of the JDK,

Sure, I get that, but it's a new API.  Once I've finished this work,
implementing such an API would be trivial.  I have no objection to it
in principle, but making ByteBuffer.map() operations work well is
worth doing too.

Andrew.



More information about the core-libs-dev mailing list