RFR: 8199453: Enable link-time generation of constructor forms
paul.sandoz at oracle.com
Mon Mar 12 15:34:03 UTC 2018
> On Mar 12, 2018, at 5:37 AM, Claes Redestad <claes.redestad at oracle.com> wrote:
> 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..
More information about the core-libs-dev