MLVM seem generally available

0 views
Skip to first unread message

Jin

unread,
Jun 8, 2009, 10:03:53 AM6/8/09
to JVM Languages
great news! I tested with jdk 7 b59 for my windowsxp. I can pass the
partial HelloWorld codes, hello.java

>java -XX:+EnableInvokeDynamic Hello
Hello, world (from a statically linked call site)
Hello, world
set target to adapt greeter(java.lang.String)void
Exception in thread "main" java.lang.UnsupportedOperationException:
NYI
at sun.dyn.FromGeneric.buildAdapterFromBytecodes
(FromGeneric.java:238)
at sun.dyn.FromGeneric.<init>(FromGeneric.java:98)
at sun.dyn.FromGeneric.of(FromGeneric.java:185)
at sun.dyn.FromGeneric.make(FromGeneric.java:177)
at sun.dyn.MethodHandleImpl.convertArguments
(MethodHandleImpl.java:247)
at java.dyn.MethodHandles.convertArguments(MethodHandles.java:
764)
at Hello.bootstrapDynamic(Hello.java:58)
at sun.dyn.CallSiteImpl.makeSite(CallSiteImpl.java:64)
at Hello.main(Hello.java:42)

Great!

One additional interesting question is that the
UnsupportedOperationException is really caused by the current
"Unsupported" developement?

John Rose

unread,
Jun 9, 2009, 1:57:45 AM6/9/09
to jvm-la...@googlegroups.com
Thanks for trying it out! The b59 version is good for initial
experiments, but it has lots of limitations.

The "NYI" UnsupportedOperationException is (as you guessed) an
unfinished part of the implementation; it stands for "Not Yet
Implemented".

The latest bits are in the mlvm repository, and have fewer
limitations. Those changes flow (with a few weeks delay) into the
OpenJDK builds.

Examples which exercise the latest bits are (always) here:
http://hg.openjdk.java.net/mlvm/mlvm/file/tip/netbeans/indy-demo

See also my blog:
http://blogs.sun.com/jrose/entry/thursday_at_javaone

Best wishes,
-- John

Jin

unread,
Jun 17, 2009, 9:40:26 AM6/17/09
to JVM Languages
Thanks, John. You did really great job. I've seen some your and your
team's presentations at JavaOne. It is really a renaissance of JVM.
woo! I will keep my eye with MLVM.
current jdk7 invokedynamic + Rémi Forax's jdk5/6 backport seem provide
a whole new solution for dynamic language, I will try more deep tests
on MLVM! Cong!

Best regards,
Jin
Reply all
Reply to author
Forward
0 new messages