Christian Thalinger wrote: > Raffaello Giulietti wrote: >> * Is there a special -XX: flag to turn on inlining of methods invoked >> via method handles? >> * Or must something be enabled during the build of mlvm? > > No, inlining is enabled by default. Currently only DMH invokes are > inlined, but I'm working on inlining the rest. Are you missing specific > calls? >
I'm experimenting with the implementation of a Smalltalk-like language. I'm using invokedynamic that targets a trivial stub that dispatches over the receiver's type which finally invokes a DMH. A simple test shows a factor of 150-200 with respect to an ordinary invokevirtual. That is, my Smalltalkish method invocation implementation, although seemingly trivial, is about 2 orders of magnitudes slower than Java's :-( That's why I'm wondering if inlining is at work. _______________________________________________ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev