Question about JEP 371 and unloading Lambdas

Mandy Chung mandy.chung at oracle.com
Thu Jun 11 16:19:46 UTC 2020



On 6/11/20 12:17 AM, Thomas Stüfe wrote:
> Thank you for that concise explanation. So, IIUC, when Lambda proxies 
> were first implemented in jdk8, you needed a class which should be 
> non-discoverable by the user and the only way to implement that was 
> anonymous classes? Even though the weak link aspect was not needed for 
> Lambdas?

Yup.   Lambda proxies want to be non-discoverable and certain access of 
the target class.   These properties are now supported by hidden classes 
(JEP 371) and nestmates (JEP 181).

Mandy


More information about the hotspot-runtime-dev mailing list