On Mar 2, 2011, at 5:26 PM, Rémi Forax wrote:
> 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.

This could be a duplicate of:

6990266: JSR 292 VM crash in Klass::is_subclass_of()

I try to reproduce it.

-- Christian

> 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 :)


_______________________________________________
mlvm-dev mailing list
mlvm-dev@openjdk.java.net
http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev

Reply via email to