On Mon, 26 Jan 2026 20:29:33 GMT, Eirik Bjørsnøs <[email protected]> wrote:
> Please review this PR which replaces `ArrayDeque` with `ArrayList` for the > native library context stack in > `jdk.internal.loader.NativeLibraries.NativeLibraryContext`. > > With this follow-up to similar changes in #29288 and #29430, a simple > JAR-based "hello world" program no longer loads the `ArrayDeque` class during > startup. > > The change here is mostly a straightforward replacement. The existing > processing was a LIFO stack, which it still is after this PR, just backed by > ArrayList instead. > > Since ArrayList is null-friendly, I added an explicit > `Objects.requireNullNull` before pushing to the stack. > > Pure refactoring, no tests updated, `noreg-cleanup`. This pull request has been closed without being integrated. ------------- PR: https://git.openjdk.org/jdk/pull/29432
