Transform non-direct MethodHandle to instance of interface

63 Views Asked by At

there is a possibility to transform MethodHandle to the instance of LambdaForm via: LambdaMetaFactory.metafactory() and invoke it via invokeinterface call. I know that it is possible to make it for direct MethodHandle. Is it possible to do it for non-direct?

Why I want do it? I have a method m that makes 6 different calls to different composed methods called via invokedynamic. I see that my calls share same LambdaForm and it looks like there is a performance degradation.

0

There are 0 best solutions below