On Mon, 1 Aug 2022 21:02:39 GMT, Chris Plummer <cjplum...@openjdk.org> wrote:
> Near the end of the test, the debuggee forces a GC so ClassUnloadEvents will > be generated, and then the debuggee immediately exits. However, the > ClassUnloadEvents might not be sent out before the VMDeath is generated, and > it prevents delivery of any more events. A short delay after the GC should > give the JVM time to deliver the ClassUnloadEvents first. > > Note, I was not able to reproduce this issue, so I'm not 100% sure this will > fix it. It does turn up in CI testing, so this seems worth trying to see if > we still see it during CI. This pull request has now been integrated. Changeset: a6564d49 Author: Chris Plummer <cjplum...@openjdk.org> URL: https://git.openjdk.org/jdk/commit/a6564d495b6c2354b82cd49243d3c8793d95f2cb Stats: 7 lines in 1 file changed: 7 ins; 0 del; 0 mod 8291650: Add delay to ClassUnloadEventTest before exiting to give time for JVM to send all events before VMDeath Reviewed-by: sspitsyn, amenkov ------------- PR: https://git.openjdk.org/jdk/pull/9708