RFR: 8375580: Avoid using ArrayDeque in jdk.internal.loader.URLClassPath

Eirik Bjørsnøs eirbjo at openjdk.org
Wed Jan 21 11:26:56 UTC 2026


On Wed, 21 Jan 2026 09:26:31 GMT, Claes Redestad <redestad at openjdk.org> wrote:

> [..] are just shifting the point of load from URLClassPath to ZipFile.CleanableResource.

Thanks for the analysis!

At first look that `inflaterCache` seems not particularly order sensitive ("give me a deflater, any will do"). In fact in the past this used `j.util.Stack`.

I may take a look at this as a follow up. The change to `ArrayDeque` may have been motivated more by synchronization concerns.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/29288#issuecomment-3777561534


More information about the core-libs-dev mailing list