JSR292 backport - First release

I've just released the first version 1.0.1
(1.0 is compiled for 1.6 only) of theJSR292 backport.
So you can now test invokedynamic and method handle invocations
without using the latest patch queue from mlvm repository
and some wizard's black magic.

The primary usage of the backport is for dynamic language runtime
developers (JRuby, Jython, Groovy, etc),
they can now use JSR292 API to improve their perf without having to
maintain different codebases.

Even if I have no proof, I strongly believe that
the JSR2 proposed design will improve performance of JVM languages
runtimes.

The backport (at least currently) is a Java agent which
modify (instrument) bytecodes at runtime to provide JSR 292 API
support on jdk11.5/1.6 VM.

The backport embodies a kind of JIT, i.e the backport agent is
able to detect hot call sites and recompile this call sites to a better
bytecode blob at runtime.

Comparing to current state of JDK7, the backport run at the same
speed or faster than JDK7 depending on the benchmark used.
The twist is that currently the JDK7 doesn't provide
a full JIT support, that's why the backport is faster :)

This assertion will change soon because I know that
the JIT support is around the corner.

Anyway, the JSR292 API provides you an infrastructure that is known
to be good in order to be optimized by the VM.
So If you are a language runtime developer, I think it worth a glimpse.

How to get JSR292 backport ?

The JSR292 backport is hosted by the JVM language runtime project
on Google Code:

Comments

your backport only compiles with and runs on Java 6, as it relies on several 6-only methods, notably:

java.util.Arrays.copyOf()java.util.Arrays.copyOfRange()java.lang.instrument.Instrumentation.redefineClasses(ClassDefinition) (Java 5 only has Instrumentation.redefineClasses(ClassDefinition[]))

Just saying, as I thought your intent was to support Java 5 too.

Attila.

On 2009.07.01., at 18:19, R&eacute;mi Forax wrote:

&gt;&gt; I've just released the first (in fact, the second) version of the JSR&gt; 292 backport.&gt; See my blog:&gt; http://weblogs.java.net/blog/forax/&gt;&gt; Dear language runtime developers,&gt; I hope you will have fun with it.&gt;&gt; cheers,&gt; R&eacute;mi