Reduce the number of classes loaded due to NativeLibrary

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 10
    • Affects Version/s: 10
    • Component/s: core-libs

      ClassLoader.NativeLibrary can replace its use of LinkedList with ArrayDeque which is typically loaded at startup for example when loading a JAR file.

      @@ -2496,7 +2496,7 @@
               }
       
               // native libraries being loaded
      - static Deque<NativeLibrary> nativeLibraryContext = new LinkedList<>();
      + static Deque<NativeLibrary> nativeLibraryContext = new ArrayDeque<>();
       
               /*
                * The run() method will be invoked when this class loader becomes

            Assignee:
            Mandy Chung (Inactive)
            Reporter:
            Mandy Chung (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: