JDK-8276079 : Release Note: JDK Flight Recorder Event for Finalization
  • Type: Sub-task
  • Component: hotspot
  • Sub-Component: jfr
  • Affected Version: 18
  • Priority: P4
  • Status: Closed
  • Resolution: Delivered
  • Submitted: 2021-10-27
  • Updated: 2022-03-24
  • Resolved: 2022-03-24
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 18
18Resolved
Related Reports
Duplicate :  
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.