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

Cleaner Observability

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Unresolved
    • P3
    • None
    • None
    • core-libs
    • None

    Description

      Finalization has provided several ways to observe the overall level of finalization activity in the system (e.g. the number of objects yet to be finalized, or pending finalization). These include:

      * MemoryMXBean.getObjectPendingFinalizationCount()
      * jcmd GC.finalizer_info
      * jmap -finalizerinfo
      * jdk.FinalizerStatistics JFR event

      With the deprecation of finalization, Cleaner becomes the primary mechanism for releasing resources when an object becomes unreachable.

      We should provide a similar level of observability for Cleaner.

      Attachments

        Activity

          People

            bchristi Brent Christian
            bchristi Brent Christian
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: