Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6983726 Reimplement MethodHandleProxies.asInterfaceInstance
  3. JDK-8312331

Release Note: Reimplement `MethodHandleProxies::asInterfaceInstance`

XMLWordPrintable

      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.

            liach Chen Liang
            liach Chen Liang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: