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

Florian Weimer fweimer at redhat.com
Tue Feb 17 09:39:04 UTC 2015


On 02/14/2015 01:09 AM, John Rose wrote:
> These queries need to go into Unsafe.
> We also need Unsafe.getIntMisaligned, etc., which wire through to whatever second-best mechanism the platform offers.

The safe variants should go into the java.lang.Integer etc. classes
IMHO.  Even the JDK has quite a few uses for them (particularly the big
endian variant).  Putting that into Unsafe only encourages further use
of Unsafe from application code.

-- 
Florian Weimer / Red Hat Product Security



More information about the core-libs-dev mailing list