-
Type:
Sub-task
-
Resolution: Delivered
-
Priority:
P4
-
Affects Version/s: 22
-
Component/s: core-libs
In previous releases, `MethodHandleProxies::asInterfaceInstance` returns a `Proxy` instance. In JDK 22, `MethodHandleProxies::asInterfaceInstance` has been reimplemented to return instances of a hidden class that can be unloaded when all instances returned for the same interface becomes unreachable. Once unloaded, subsequent calls to `MethodHandleProxies::asInterfaceInstance` will spin and define a new hidden class that may incur performance overhead.