Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8266936 Add a finalization JFR event
  3. JDK-8276079

Release Note: JDK Flight Recorder Event for Finalization

    XMLWordPrintable

    Details

    • Subcomponent:
      jfr
    • Verification:
      Verified

      Description

      A new JDK Flight Recorder Event, `jdk.FinalizerStatistics`, identifies classes at runtime that use finalizers. The event is enabled by default in the JDK (in the `default.jfc` and `profile.jfc` JFR configuration files). When enabled, JFR will emit a `jdk.FinalizerStatistics` event for each instantiated class with a non-empty finalize() method. The event includes: the class that overrides `finalize()`, that class's `CodeSource`, the number of times the class's finalizer has run, and the number of objects still on the heap (not yet finalized). For information about using JFR, see the [User Guide](https://docs.oracle.com/en/java/java-components/jdk-mission-control/8/user-guide/using-jdk-flight-recorder.html#GUID-D38849B6-61C7-4ED6-A395-EA4BC32A9FD6).

      If finalization has been disabled with the `--finalization=disabled` option, no `jdk.FinalizerStatistics` events are emitted.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              bchristi Brent Christian
              Reporter:
              bchristi Brent Christian
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: