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