Invokedynamic and recursive method call
Christian Thalinger
christian.thalinger at oracle.com
Fri Jan 30 01:01:04 UTC 2015
> On Jan 29, 2015, at 4:48 PM, John Rose <john.r.rose at oracle.com> wrote:
>
> On Jan 7, 2015, at 8:13 AM, Remi Forax <forax at univ-mlv.fr <mailto:forax at univ-mlv.fr>> wrote:
>>
>> But if fibo is called through an invokedynamic, instead of emitting a direct call to fibo,
>> the JIT generates a code that push the method handle on stack and execute it
>> like if the metod handle was not constant
>> (the method handle is constant because the call at depth=1 is inlined !).
>
> Invocation of non-constant MH's had a performance regression with the LF-based implementation.
> As of JDK-8069591 they should be no slower and sometimes faster than the old implementation.
Maybe but what Remi is saying that the MH is constant and we could emit a direct call.
> — John
>
> _______________________________________________
> mlvm-dev mailing list
> mlvm-dev at openjdk.java.net
> http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/mlvm-dev/attachments/20150129/597b093f/attachment.html>
More information about the mlvm-dev
mailing list