I recently committed to JDK7 a bundle of coordinated changes to the JDK and JVM. It looks like we failed to promote, in jdk7-b92, the JDK changes that go with the most recent JVM changes. These JVM changes are in hs19-b01.
The JDK changes will catch up in jdk7-b93. (Reminder: This mismatch only affects people who use UnlockExperimentalVMOptions and EnableInvokeDynamic or EnableMethodHandles.) For now, please grab this file and prepend it onto your BCP: http://blogs.sun.com/jrose/resource/jsr292/hs19-b01-jsr292-patch.jar Here's the option, of course: -Xbootclasspath/p:$DOWNLOADS/hs19-b01-jsr292-patch.jar Current unit tests are in this file: http://blogs.sun.com/jrose/resource/jsr292/hs19-b01-jsr292-tests.jar It requires a recent version of JUnit (4.5 or better): http://www.junit.org/node/401 Here's the complete command line: $JAVA7_HOME/bin/java} \ -XX:+{UnlockExperimentalVMOptions,EnableInvokeDynamic} \ -Xbootclasspath/p:$DOWNLOADS/hs19-b01-jsr292-patch.jar \ -cp $$DOWNLOADS/hs19-b01-jsr292-tests.jar:$DOWNLOADS/junit-4.5.jar \ org.junit.runner.JUnitCore test.java.dyn.MethodHandlesTest Sorry for the trouble. Please let me know if this works. -- John On May 22, 2010, at 4:55 PM, Rémi Forax wrote: > Hi all, > testing my pet project with jdk7b94, I get a crash (with c1 or c2). > The crash apperas before the main is executed > > Commandline: > java -server -XX:+AnonymousClasses -XX:+UnlockExperimentalVMOptions > -XX:+EnableInvokeDynamic > -Xbootclasspath/a:$LIB/phpreboot.jar:$LIB/tatoo-runtime.jar:$LIB/asm-all-3.2.jar > > com.googlecode.phpreboot.Main $@ > > Invalid layout of java.dyn.CallSite at target > # > # A fatal error has been detected by the Java Runtime Environment: > # > # Internal Error (javaClasses.cpp:48), pid=2110, tid=1604464 > # fatal error: Invalid layout of preloaded class > # > # JRE version: 7.0-b94 > # Java VM: Java HotSpot(TM) Client VM (19.0-b01 mixed mode, sharing > linux-x86 ) > # An error report file with more information is saved as: > # /home/forax/java/workspace/phpreboot/hs_err_pid2110.log > # > # If you would like to submit a bug report, please visit: > # http://java.sun.com/webapps/bugreport/crash.jsp > # > Abandon (core dumped) > > I know that jdk7b92 doesn't exhibit this error. > > Rémi > _______________________________________________ > mlvm-dev mailing list > mlvm-dev@openjdk.java.net > http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev _______________________________________________ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev