Integrated: 8266936: Add a finalization JFR event

Markus Grönlund mgronlun at openjdk.java.net
Mon Oct 18 16:55:56 UTC 2021


On Thu, 8 Jul 2021 19:47:26 GMT, Markus Grönlund <mgronlun at openjdk.org> wrote:

> 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

This pull request has now been integrated.

Changeset: 72a976ef
Author:    Markus Grönlund <mgronlun at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/72a976ef05fc2c62657920a560a0abc60b27c852
Stats:     1917 lines in 36 files changed: 1375 ins; 409 del; 133 mod

8266936: Add a finalization JFR event

Reviewed-by: coleenp, mchung, egahlin

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

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


More information about the core-libs-dev mailing list