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

Reduce the number of classes loaded due to NativeLibrary

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 10
    • 10
    • 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

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

              Created:
              Updated:
              Resolved: