Invokedynamic slower than reflection?

Stephen Bannasch stephen.bannasch at deanbrook.org
Fri Jul 30 10:51:36 PDT 2010


>Hi Rémi,
>
>I did freshly build mlvm and run Eric's test.
>Here's my result:
>
>Duration invokedynamic: 103
>Duration reflection: 1463
>
>The patch seems to be working for me as InvokeDynamic is clearly
>faster than Reflection on my machine.

Hmm ... on my latest mlvm I get this error:

  Exception in thread "main" java.lang.ClassFormatError:
    invokedynamic instructions not enabled in this JVM in method
    Hello.main([Ljava/lang/String;)V

trying to run:

  ./patches/netbeans/indy-demo/src/Hello.java

which is what Eric's test was adapted from.

I'm just compiling and trying to run Hello.java:

  $ javac Hello.java
  $ java Hello

more details here: http://gist.github.com/500808

using mlvm compiled today:
http://www.concord.org/~sbannasch/mlvm/java-1.7.0-internal-2010_07_30.tar.gz


More information about the mlvm-dev mailing list