On Mon, 26 Jan 2026 20:06:03 GMT, Eirik Bjørsnøs <[email protected]> wrote:
> Hot on the heals of #29288, this PR replaces `ArrayDeque` with `ArrayList` > for the Inflater cache implementation in `ZipFile.CleanableResource`. > > With this PR, we change the order of the cache from a FIFO queue to a LIFO > stack backed by ArrayList. The order seems unimportant, and has indeed been > LIFO in the past when using `java.util.Vector`. Intuitively, it should be > better to return the most recently used Inflater. > > No tests updated, strict refactoring, `noreg-cleanup`. This pull request has now been integrated. Changeset: 173153e1 Author: Eirik Bjørsnøs <[email protected]> URL: https://git.openjdk.org/jdk/commit/173153e1b25c5081d6e6886fe9588847f5a564b6 Stats: 23 lines in 1 file changed: 2 ins; 4 del; 17 mod 8376403: Avoid loading ArrayDeque in java.util.zip.ZipFile Reviewed-by: lancea, jpai ------------- PR: https://git.openjdk.org/jdk/pull/29430
