Unsafe.{get,put}-X-Unaligned performance

Andrew Haley aph at redhat.com
Thu Mar 12 18:35:53 UTC 2015

On 03/12/2015 04:52 PM, Peter Levart wrote:
> ...getFloat() is calling getFloat(int) which is a virtual method with 2 
> implementations. I think it would be better to in-line the the call and 
> eliminate the need to execute checkIndex()...

Okay; I guess it is more symmetrical that way.  I did have a look
at the generated code and the redundant index check was eliminated,
but you can't guarantee it always will be.


More information about the hotspot-compiler-dev mailing list