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

Refactor Cleaner Registration to avoid resource leak

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3
    • tbd
    • 11
    • core-libs

    Description

      Cleaner registration typically occurs after resources have already been allocated; if an exception occurs before/during the registration of the cleanable the resource may not be freed.
      Consider if registration should provide a callback to open the resource after the Cleanable instance has been allocated.
      Also previously mentioned during finalization removal in zip.

      http://mail.openjdk.java.net/pipermail/core-libs-dev/2018-February/051277.html

      Attachments

        Issue Links

          Activity

            People

              rriggs Roger Riggs
              rriggs Roger Riggs
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: