On Thu, 17 Feb 2022 06:57:07 GMT, Chris Plummer <cjplum...@openjdk.org> wrote:

>> Zhengyu Gu has updated the pull request incrementally with one additional 
>> commit since the last revision:
>> 
>>   Simplify classTrack_reset and revert bagSize check
>
> Actually a bit of a correction to my last statement above. processUnloads is 
> only called if there has been a GC since the last event came in. This also 
> reduces the need to optimize processUnloads for the case where 
> deletedSignatures is NULL or is empty.

> Thanks for the additional explanation @plummercj. I agree with your 
> suggestion to move this forward and revisit.
> 
> I suspect the issue with directly issuing the CLASS_UNLOAD event is due to 
> when, and on what thread, the OBJECT_FREE event is issued.

I believe OBJECT_FREE event is always issued from VMThread, at a GC safepoint 
prior to JDK16 or a dedicated safepoint post.

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

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

Reply via email to