RFR: 8266936: Add a finalization JFR event [v2]
Alan Bateman
alanb at openjdk.java.net
Wed May 19 09:03:43 UTC 2021
On Wed, 19 May 2021 07:50:55 GMT, Erik Gahlin <egahlin at openjdk.org> wrote:
> I wonder if there needs to be one event per finalized object?
>
> Perhaps a counter per class would be as useful, i.e. jdk.FinalizationStatistics, and if it could be implemented in the VM, without other implications, that would be great.
>
> Such an event could be enabled by default and provide much greater value than an event that users would need to know about and configure themselves, which 99,99% of all user will not do.
So some statistics or periodic event that N instances of class C were registered or queued? I think you are right that this would be a lot more valuable.
-------------
PR: https://git.openjdk.java.net/jdk/pull/4101
More information about the hotspot-dev
mailing list