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

Volker Simonis simonis at openjdk.org
Mon Feb 20 08:52:36 UTC 2023


On Sat, 18 Feb 2023 01:55:52 GMT, Mandy Chung <mchung 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.

Yes, please. I think that would be helpful.

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

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


More information about the core-libs-dev mailing list