Avoid loading ArrayDeque in java.util.zip.ZipFile

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • None
    • Affects Version/s: None
    • Component/s: core-libs

      Similar to JDK-8375580, we could replace ArrayDeque with ArrayList for the Inflater cache in ZipFile.CleanableResource.

      The cache used to use a java.util.Vector as a FIFO stack. The change to ArrayDeque changed this to a LIFO queue, however the order is insignificant to this cache.

      The motivation for this is to prune loading of ArrayDeque and simplify the class loader graph and lower hazards for the primordial setup.

            Assignee:
            Eirik Bjørsnøs
            Reporter:
            Eirik Bjørsnøs
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: