-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P4
-
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
@@ -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