Andrew Haley aph at
Wed Aug 20 16:43:13 UTC 2014

On 08/20/2014 04:10 PM, Florian Weimer wrote:
> Is there already a way to compute the expression in the subject without 
> the ByteBuffer allocation?  I saw quite a few equivalent formulations in 
> the OpenJDK sources, and perhaps it's time to add a standardized 
> solution.

Isn't this really calling for intrinsification of ByteBuffers?  With that,
C2 would know that the ByteBuffer doesn't escape, and could collapse the
lot into a load.


More information about the core-libs-dev mailing list