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

Add support for registering a segment with a Cleaner

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: repo-panama
    • Fix Version/s: None
    • Component/s: tools

      Description

      Sometimes it's handy to delegate cleanup to the GC - especially in the case of long-lived segments. It is currently hard to do, as a client cannot register a segment onto a cleaner directly: that's because the client would need to pass a closure calling close() on the segment being register - but that means that the closure would keep the segment reachable.

      An API should add this capability.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mcimadamore Maurizio Cimadamore
              Reporter:
              mcimadamore Maurizio Cimadamore
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: