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

A common Cleaner for general use may be useful

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 9
    • Fix Version/s: tbd
    • Component/s: core-libs
    • Labels:
      None

      Description

      java.lang.ref.Cleaner supports lightweight cleanup of object without using finalization. It is up to each class or library to create or share a Cleaner object.
      It may be useful to have a common Cleaner to amortize the cost of the thread needed by the cleaner.
      There is a risk to applications sharing a cleaner that a misbehaving cleaning function might delay or disrupt cleaning.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rriggs Roger Riggs
                Reporter:
                rriggs Roger Riggs
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: