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. Andrew.