hg: jdk8/tl/jdk: 7194897: JSR 292: Cannot create more than 16 instances of an anonymous class; ...

Peter Levart peter.levart at gmail.com
Mon Nov 11 12:58:23 UTC 2013

On 11/05/2013 12:29 AM, Remi Forax wrote:
>> But you are right that there is a performance pothole in the 
>> interoperation between lambdas and reflection.
>> This implementation RFE, to use method handles instead of code 
>> spinning, would take care of that particular problem:
>> https://bugs.openjdk.java.net/browse/JDK-6824466
> I remember writing a code like that a long time ago, to see if it was 
> possible,
> as far as I remember, the main issue was to be able to say, please 
> compiler
> compile this method handle chain into a blob that I can reuse.
>> — John
> regards,
> Rémi

Hi John, Remi,

I tried to create a prototype to see how it compares to 
bytecode-generated method accessor. Here it is:


It seems that lambda forms do their job quite well. Do experts have any 
suggestion how to improve it?

Regards, Peter

More information about the core-libs-dev mailing list