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

Add support for registering a segment with a Cleaner

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P3
    • None
    • repo-panama
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: