On Mon, 22 Jul 2024 14:27:39 GMT, Chen Liang <li...@openjdk.org> wrote:

> For the question 
> [here](https://github.com/openjdk/jdk/pull/20253#issuecomment-2242267516):
> 
> 1. A sample of loading an otherwise inaccessible method handle from class 
> data: 
> https://github.com/openjdk/jdk/blob/c3226aaeb810521257e961be5763552c86ee5651/src/java.base/share/classes/java/lang/invoke/InnerClassLambdaMetafactory.java#L517-L518
> 2. In offline discussion with Claes, we are thinking of generating direct 
> bytecode to avoid the overhead of creating a lot of intermediate method 
> handles.

The ClassData of LambdaMetafactory has only one MethodHandle, but multiple 
MethodHandles are needed here.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/20273#issuecomment-2244656110

Reply via email to