RFE: LambdaMetafactory to a class on another ClassLoader - an API gap?

2018-02-12 Thread Geoffrey De Smet
tterFunction = (Function) site.getTarget().invokeExact(); Object instance = loadedClass.newInstance(); // Throws java.lang.ClassNotFoundException: junit.framework.TestResult Object returnValue = getterFunction.apply(instance); System.out.println("LambdaMetafactory invoke ret

Re: RFE: LambdaMetafactory to a class on another ClassLoader - an API gap?

2018-02-16 Thread Geoffrey De Smet
HOD_RETURN_TYPE)),     MethodType.methodType(METHOD_RETURN_TYPE, loadedClass));     Function getterFunction = (Function) site.getTarget().invokeExact(); Thank you, Claes. With kind regards, Geoffrey De Smet On 12/02/18 11:37, Claes Redes

Why is LambdaMetafactory 10% slower than a static MethodHandle but 80% faster than a non-static MethodHandle?

2018-02-19 Thread Geoffrey De Smet
public String getName() {     return name;     }     } } With kind regards, Geoffrey De Smet ___ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev

Re: Why is LambdaMetafactory 10% slower than a static MethodHandle but 80% faster than a non-static MethodHandle?

2018-02-19 Thread Geoffrey De Smet
static final MethodHandle handle8;     private static final MethodHandle handle9;     ...     private static final MethodHandle handle1000; } And furthermore, it would break down with domain hierarchies that have more than 1000 getters/setters. With kind regards, Geoffrey De Smet On 19/02/18 13:

Re: Why is LambdaMetafactory 10% slower than a static MethodHandle but 80% faster than a non-static MethodHandle?

2018-02-20 Thread Geoffrey De Smet
MegamorphicFasterReflectionClientBenchmark._400_LambdaMetafactory  avgt   60  14.393 ± 0.275  ns/op With kind regards, Geoffrey De Smet On 19/02/18 23:54, Wenlei Xie wrote: Thank you Vladimir for the explanation