Performance problem with invoke dynamic

John Rose john.r.rose at oracle.com
Wed Aug 17 11:59:44 PDT 2011


On Aug 12, 2011, at 9:49 PM, Charles Oliver Nutter wrote:

> On the other side of things...I hope those languages that will churn
> through method handles also realize they're unlikely to ever JIT...

Getting native code out of the MH-construction process brings them much closer to optimizability.

Twenty-year-old systems with "method handles" (i.e., lambdas) are very good at compiling them.

If you have a curried function (one which requires something like MH.bindTo on every call) you can optimize it after inlining the full call sequence and then using escape analysis to scalarize the intermediate MHs.

That's what we have to do, if we are going to support Lambdas which are invoked in the curried style.  (I can't see how we wouldn't support them.)  Happily, JVMs already do EA, so our job is primarily a matter of making MHs scrutable to that algorithm.

-- John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/mlvm-dev/attachments/20110817/9166462e/attachment.html 


More information about the mlvm-dev mailing list