RFR: 8302154: Hidden classes created by LambdaMetaFactory can't be unloaded [v2]

Mandy Chung mchung at openjdk.org
Sat Feb 18 01:58:29 UTC 2023


On Fri, 17 Feb 2023 20:01:08 GMT, Volker Simonis <simonis at openjdk.org> wrote:

> Finally, the PR fixes a regression compared to the JDK 11 behavior.

This is an intended change that improves the C heap memory usage.   In addition, the spec of `LambdaMetafactory` has no guarantee of the spinned classes be unloaded independent of it defining loader.   This is indeed a behavioral change if `LambdaMetafactory` API is called directly instead of via `invokedynamic`.   I can create a CSR to retrofit this behavioral change.

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

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


More information about the core-libs-dev mailing list