-
Sub-task
-
Resolution: Delivered
-
P4
-
22
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.