RFR: 8163370: Reduce number of classes loaded by common usage of java.lang.invoke

Aleksey Shipilev aleksey.shipilev at gmail.com
Wed Aug 10 15:07:34 UTC 2016

On 08/09/2016 03:04 PM, Claes Redestad wrote:
> please review this set of small changes to reduce the number of classes
> defined and pulled in when initializing java.lang.invoke
> Webrev: http://cr.openjdk.java.net/~redestad/8163370/webrev/
> Bug: https://bugs.openjdk.java.net/browse/JDK-8163370

I'm too late here, but the change in StringConcatFactory code style is
for the worse, IMO. Having a switch over enum does add readability. You
might get the same class-count reduce effect by exposing the
RecipeElement.tag as byte/int and switching over it.


More information about the core-libs-dev mailing list