RFR: 8291456: com/sun/jdi/ClassUnloadEventTest.java failed with: Wrong number of class unload events: expected 10 got 4
David Holmes
dholmes at openjdk.org
Tue Oct 18 04:21:40 UTC 2022
On Tue, 18 Oct 2022 02:39:11 GMT, Serguei Spitsyn <sspitsyn at 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
More information about the serviceability-dev
mailing list