> 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 incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains 20 additional commits since the last revision: - Merge branches '8266936-alt' and '8266936-alt' of github.com:mgronlun/jdk into 8266936-alt - remove build directive - Code Source attribute for Finalizer event - whitespace - update - update - whitespace - 8266936-alt: Add a finalization JFR event - shortcut calling Jfr::is_recording() - 8266936: Add a finalization JFR event - ... and 10 more: https://git.openjdk.java.net/jdk/compare/663b1a74...c8dbca54 ------------- Changes: - all: https://git.openjdk.java.net/jdk/pull/4731/files - new: https://git.openjdk.java.net/jdk/pull/4731/files/44988036..c8dbca54 Webrevs: - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=4731&range=04 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=4731&range=03-04 Stats: 65693 lines in 1278 files changed: 54237 ins; 5619 del; 5837 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