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

Add a finalization JFR event

    XMLWordPrintable

    Details

    • Subcomponent:
      jfr
    • Resolved In Build:
      b20

      Description

      Use of finalizers has long been discouraged, in favor of other resource management techniques such as try-with-resources and java.lang.ref.Cleaner. Object.finalize() was deprecated in Java 9 (JDK-8165641).

      A JFR event, either generated whenever a finalizer is called, or by some alternative means to detect what code is still using finalizers would be helpful.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mgronlun Markus Grönlund
              Reporter:
              bchristi Brent Christian
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: