On Thu, 21 Jul 2022 03:51:32 GMT, Serguei Spitsyn <sspit...@openjdk.org> wrote:

> The following RN is related to this question:
> https://bugs.openjdk.org/browse/JDK-8256558
> It explicitly says: `SetNotificationMode can be used to explicitly flush 
> ObjectFree events, if needed.`

That wasn't quite what I was getting at. My comment / question was much more 
general. If you call SetEventNotificationMode() to disable a specific event, 
once it returns are you guaranteed that no more events will be delivered. This 
means that if JVMTI was in the middle of calling the event handler at the same 
time that SetEventNotificationMode() is called, then before returning, 
SetEventNotificationMode() will block until the event handler returns.

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

PR: https://git.openjdk.org/jdk/pull/9168

Reply via email to