Lambda Classes reachability from GC roots in JDK11 and JDK17
Prasad Velagapudi
prasad.velagapudi at servicenow.com
Wed Jun 12 14:37:38 UTC 2024
A gentle reminder on these questions… Could you please respond?
Regards,
Prasad.
From: Prasad Velagapudi <prasad.velagapudi at servicenow.com>
Date: Thursday, 6 June 2024 at 8:10 PM
To: core-libs-dev at openjdk.org <core-libs-dev at openjdk.org>
Subject: Lambda Classes reachability from GC roots in JDK11 and JDK17
Hello Lambda Experts,
I am looking for clarifications on the following questions.
1. I observed in my tests that lambda classes generated for inline lambda expressions (ex: LambdaUtil::print), are STRONGLY linked to defining class loader and never gets collected on GC. This behaviour is same in both JDK11 and JDK17. Can you please confirm is this accurate?
2. Also, I observed that the lambda classes generated for inline lambda expressions (ex: LambdaUtil::print) not adding additional overhead to Metaspace in JDK17 compared to that of JDK11 . Can you please confirm is this accurate?
Regards,
Prasad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/core-libs-dev/attachments/20240612/361fc503/attachment.htm>
More information about the core-libs-dev
mailing list