RFR: 8193066: Avoid use of capturing lambdas in JarFile

Claes Redestad claes.redestad at oracle.com
Mon May 11 09:50:44 UTC 2020


Hi,

lambdas used in the interaction between JarFile and ZipFile can be
avoided by having ZipFile call a shared secret in JarFile to create a
JarFileEntry when appropriate. This removes an allocation per lookup.

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

Testing: tier1-2, verified a small per-op speed-up, significantly so
          for negative lookups and during startup/warmup (10-20%
          improvements when interpreting)

Thanks!

/Claes


More information about the core-libs-dev mailing list