On Tue, 18 Oct 2022 02:39:11 GMT, Serguei Spitsyn <sspit...@openjdk.org> wrote:

> There is always this kind of race but this fix does not make it any worse.

Before this fix events were not getting flushed so at VM exit the agent was 
idle with respect to those events and the test failed because events were 
missing. Now you are flushing those events are VM exit and so the agent will 
now be very active at VM exit, and racing against the rest of the termination 
sequence.

> Please, note, the ObjectFree events in this fix are flushed/posted 
> synchronously before the VMDeath event.

Do you mean that before the flush operation returns all events are guaranteed 
to have been processed?

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

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

Reply via email to