> Secondly, MethodHandle.invokeExact() takes and returns an object so there's a 
> boxing/unboxing involved as well (as the Math/FastMath methods returns 
> primitives).

There is "magic" going on here that actually avoids boxing. You
can/should cast directly to the primitive type. That is what the
PolymorphicSignature annotation means.

    @HotSpotIntrinsicCandidate
    public final native @PolymorphicSignature Object
invokeExact(Object... args) throws Throwable;

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to