RFR: 8199453: Enable link-time generation of constructor forms

Claes Redestad claes.redestad at oracle.com
Mon Mar 12 12:37:33 UTC 2018


Hi,

I found what appears to be a simple omission from my earlier work to 
pre-generate
LambdaForms at jlink time, in that the DIRECT_NEW_INVOKE_SPECIAL kind is 
never looked
up nor pregenerated.

Fixing that means we're covering a few more kinds of LFs at link-time 
and realizing a
small startup optimization on first linking of constructor lambdas 
(Foo::new)

Webrev: http://cr.openjdk.java.net/~redestad/8199453/jdk.00/
Bug:    https://bugs.openjdk.java.net/browse/JDK-8199453

I also piled on a trivial micro-optimization to the bogusMethod, which 
is no longer
used with more than one arg thus doesn't have to use a vararg parameter. 
This means
an insignificant reduction in Object[] creation during bootstrap - hope 
noone minds..

Thanks!

/Claes


More information about the core-libs-dev mailing list