Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8193685

Make cleanup registration more robust in ZIP Inflater/Deflater (enhancement of JDK-8193507)

    Details

    • Type: Enhancement
    • Status: New
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 10
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
      None
    • Introduced In Version:
      10
    • CPU:
      generic
    • OS:
      generic

      Description

      JDK-8193507 replaced finalization with Cleaner API for automatic native resource cleanup in ZIP Inflater/Deflater. The code could be improved with little effort to be more robust in situations when Clenaer.register fails with OutOfMemoryError due to the need to allocate object(s). Simply moving the native resource allocation after the Cleaner.register achieves the desired effect.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                plevart Peter Levart
                Reporter:
                plevart Peter Levart
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: