RFR: 8266936: Add a finalization JFR event [v2]

Mandy Chung mchung at openjdk.java.net
Wed May 19 18:43:40 UTC 2021


On Wed, 19 May 2021 17:57:11 GMT, Erik Gahlin <egahlin at openjdk.org> wrote:

> > I was also thinking if this event should be implemented in the VM in order to avoid some performance overhead such as object allocation. Erik, what is the benefit of implementing in in the VM?
> 
> No startup cost, no allocation and there are callbacks when a class gets unloaded, so it's probably easier to clear any table where the statistics is held.

Thanks for the confirmation.   This is performance sensitive area and so it's worth considering doing it in the VM.  In either case, performance measurement of the overhead will tell.

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

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


More information about the core-libs-dev mailing list