Not reproductible crash + unexpected exception?
Rémi Forax
forax at univ-mlv.fr
Wed Mar 2 08:26:28 PST 2011
The VM (jdk7b131 linux 64bits) crashes once when running:
java -XX:+UnlockExperimentalVMOptions -XX:+EnableInvokeDynamic -cp .
Megamorphic2
The weird thing is even if I'm not able to reproduce the crash anymore.
I join the classes:
Megamorphic* classes are in .
and RT.class is in jsr335/lambda/optimizer/
Moreover, it doesn't work as expected and I get a weird error message:
Exception in thread "main" java.lang.IllegalStateException: no
bootstrap method found for invokedynamic
at Megamorphic2.test(Megamorphic2.java:60)
at Megamorphic2.main(Megamorphic2.java:52)
Megamorphic2.class contains three invokedynamic calls in test():
private static void test(Mapper<Object, Object> mapper1, Mapper<Object,
Object> mapper2, Mapper<Object, Object> mapper3, ArrayList<Object> list)
throws Throwable {
bar(list, mapper1);
bar(list, mapper2);
bar(list, mapper3);
}
The first one is resolved correctly but the next one throw the
IllegalStateException.
For the curious, I'm working to create an agent to optimize lambda calls :)
Rémi
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: hs_err_pid8577.log
Url: http://mail.openjdk.java.net/pipermail/mlvm-dev/attachments/20110302/db395860/attachment-0001.ksh
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Megamorphic2.class
Type: application/octet-stream
Size: 3477 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/mlvm-dev/attachments/20110302/db395860/attachment-0004.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Megamorphic2$Mapper.class
Type: application/octet-stream
Size: 377 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/mlvm-dev/attachments/20110302/db395860/attachment-0005.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Megamorphic2$SAMMapper.class
Type: application/octet-stream
Size: 1035 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/mlvm-dev/attachments/20110302/db395860/attachment-0006.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: RT.class
Type: application/octet-stream
Size: 2889 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/mlvm-dev/attachments/20110302/db395860/attachment-0007.obj
More information about the mlvm-dev
mailing list