performance issue: 7023639: JSR 292 method handle invocation needs a fast path for compiled code

Rémi Forax forax at univ-mlv.fr
Tue Mar 1 17:15:52 PST 2011


On 03/02/2011 01:42 AM, John Rose wrote:
> At least the most important transforms should go through customized code.  These include:
> - direct access (no transforms)

It's fast.

> - receiver binding (the bindTo transformation)

I haven't done any tests.

> - trivial asType transformations

As you say you pay the price of going back to the interpreter.
But it's not that bad.


> - invokeGeneric (argument and return value conversions to and from Object)

if the mh as the same signature, it's as fast as invokeExact.
But if there is some conversions, it's painfully slow.

Rémi



More information about the mlvm-dev mailing list