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. Can you please confirm is this accurate?


Regards,
Prasad

Reply via email to