Add internal privileged System.loadLibrary

XMLWordPrintable

    • b07

      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.

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

              Created:
              Updated:
              Resolved: