On Wed, 19 May 2021 07:50:55 GMT, Erik Gahlin <egah...@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