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

Add internal privileged System.loadLibrary

    XMLWordPrintable

Details

    • b07

    Description

      JDK internals wrap System.loadLibrary in a PrivilegedAction in quite a few places, and whether we use a lambda or an anonymous class, we'll be loading or spinning up a new class per call site.

      By implementing a shared secret loadLibrary that wraps in a privileged action if necessary, we avoid loading a handful of one-off classes which will never be unloaded.

      Attachments

        Issue Links

          Activity

            People

              redestad Claes Redestad
              redestad Claes Redestad
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: