On Wed, 19 May 2021 17:57:11 GMT, Erik Gahlin <egah...@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

Reply via email to