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

Add a finalization JFR event

    XMLWordPrintable

Details

    • jfr
    • 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

          There are no Sub-Tasks for this issue.

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: