Re: Question on Lambda function

2024-05-31 Thread Zhengyu Gu
Thanks a lot, Chen -Zhengyu From: Chen Liang Date: Friday, May 31, 2024 at 10:19 AM To: Zhengyu Gu Cc: core-libs-dev@openjdk.org Subject: Re: Question on Lambda function [External Email] Hi Zhengyu, This implementation is actually quite good in terms of

Re: Question on Lambda function

2024-05-31 Thread Chen Liang
gt; > > -Zhengyu > > > > > > > > > > > > > > > > > > *From: *Zhengyu Gu > *Date: *Wednesday, May 29, 2024 at 8:28 PM > *To: *Chen Liang > *Cc: *core-libs-dev@openjdk.org > *Subject: *Re: Question on Lambda function > > Hi

Re: Question on Lambda function

2024-05-31 Thread Zhengyu Gu
appreciate your insights. Thanks, -Zhengyu From: Zhengyu Gu Date: Wednesday, May 29, 2024 at 8:28 PM To: Chen Liang Cc: core-libs-dev@openjdk.org Subject: Re: Question on Lambda function Hi Chen, What is your usage pattern of these single-abstract-method implementations? Since it sounds

Re: Question on Lambda function

2024-05-29 Thread Zhengyu Gu
t; mailto:core-libs-dev@openjdk.org>> Subject: Re: Question on Lambda function [External Email] Hi Gu, CallSite is specific to each invokedynamic instruction instead of each InvokeDynamic constant pool entry: https://docs.oracle.com/javase/specs/jvms/

Re: Question on Lambda function

2024-05-29 Thread Chen Liang
ay, May 29, 2024 at 2:43 PM > *To: *Zhengyu Gu > *Cc: *core-libs-dev@openjdk.org > *Subject: *Re: Question on Lambda function > *[External Email]* > > > -- > > Hi Gu, > > CallSite is specific to each invokedynamic instruction i

Re: Question on Lambda function

2024-05-29 Thread Zhengyu Gu
: Question on Lambda function [External Email] Hi Gu, CallSite is specific to each invokedynamic instruction instead of each InvokeDynamic constant pool entry: https://docs.oracle.com/javase/specs/jvms/se22/html/jvms-6.html#jvms-6.5.invokedynamic<ht

Re: Question on Lambda function

2024-05-29 Thread Chen Liang
Hi Gu, CallSite is specific to each invokedynamic instruction instead of each InvokeDynamic constant pool entry: https://docs.oracle.com/javase/specs/jvms/se22/html/jvms-6.html#jvms-6.5.invokedynamic And the linking is done by MethodHandleNatives.linkCallSite if you want to follow the Java implemen