Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8276648

Downcall stubs are never freed

    XMLWordPrintable

Details

    Description

      Downcall stubs/native invokers are currently never free. After creation they are stored in a cache, and they stay there for the lifetime of the VM.

      We could implement a weak reference cache where the values are NativeEntryPoints, and then register those NativeEntryPoints with a cleaner that frees the downcall stub when the NativeEntryPoint becomes unreachable.

      Attachments

        Issue Links

          Activity

            People

              jvernee Jorn Vernee
              jvernee Jorn Vernee
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: