RFR: 8266936: Add a finalization JFR event [v15]

Markus Grönlund mgronlun at openjdk.java.net
Wed Oct 13 17:49:18 UTC 2021


> Greetings,
> 
> Object.finalize() was deprecated in JDK9. There is an ongoing effort to replace and mitigate Object.finalize() uses in the JDK libraries; please see https://bugs.openjdk.java.net/browse/JDK-8253568 for more information. 
> 
> We also like to assist users in replacing and mitigating uses in non-JDK code.
> 
> Hence, this changeset adds a periodic JFR event to help identify which classes are overriding Object.finalize().
> 
> Thanks
> Markus

Markus Grönlund has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 44 commits:

 - Merge branch '8266936-alt' of github.com:mgronlun/jdk into 8266936-alt
 - symbols-unix
 - jvm.h and JVM_Entry
 - no precompiled headers and mtServiceability nmt classification
 - remove rehashing and rely on default grow_hint for table resize
 - mtStatistics
 - localize
 - cleanup
 - FinalizerStatistics
 - Model as finalizerService
 - ... and 34 more: https://git.openjdk.java.net/jdk/compare/124f8237...5359a793

-------------

Changes: https://git.openjdk.java.net/jdk/pull/4731/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=4731&range=14
  Stats: 1893 lines in 36 files changed: 1375 ins; 409 del; 109 mod
  Patch: https://git.openjdk.java.net/jdk/pull/4731.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/4731/head:pull/4731

PR: https://git.openjdk.java.net/jdk/pull/4731


More information about the serviceability-dev mailing list