RFR: 8294058: Early use of lambda introduced in JDK-8285263 cause startup regressions in 20-b02

Claes Redestad redestad at openjdk.org
Tue Sep 20 11:25:25 UTC 2022


[JDK-8285263](https://bugs.openjdk.org/browse/JDK-8285263) innocuously rewrote an anonymous class in `SecureClassLoader.getProtectionDomain` to a (capturing) lambda. Since this is called during early bootstrap this shows up as a regression across the board on all our startup and footprint tests.

Restoring the anonymous class drops no. of classes loaded on a Hello World test from 493 to 448 (macosx).

-------------

Commit messages:
 - Add comment
 - De-sugar lambda in SecureClassLoader.getProtectionDomain

Changes: https://git.openjdk.org/jdk/pull/10357/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=10357&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8294058
  Stats: 15 lines in 1 file changed: 6 ins; 1 del; 8 mod
  Patch: https://git.openjdk.org/jdk/pull/10357.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/10357/head:pull/10357

PR: https://git.openjdk.org/jdk/pull/10357



More information about the security-dev mailing list