RFR: 8266936: Add a finalization JFR event
Brent Christian
bchristi at openjdk.java.net
Fri Jul 9 18:24:48 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 would 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
src/hotspot/share/jfr/metadata/metadata.xml line 1084:
> 1082: </Event>
> 1083:
> 1084: <Event name="Finalizer" category="Java Application" label="Finalizer" thread="false" startTime="false" period="endChunk">
Would it make sense for this event to be under the "Java Virtual Machine, GC" category?
-------------
PR: https://git.openjdk.java.net/jdk/pull/4731
More information about the hotspot-jfr-dev
mailing list