On Tue, 18 Oct 2022 01:20:15 GMT, Serguei Spitsyn <sspit...@openjdk.org> wrote:

> The JDI ClassUnloadEvent events are synthesized by the JDWP agent from the 
> JVM TI ObjectFree events.
> The JVM TI ObjectFree events are flushed when the JVM TI 
> SetEvenNotificationMode is used to disable the ObjectFree events. It is not 
> very helpful for JDWP agent as the ObjectFree events are always enabled.
> The fix is to flush all pending ObjectFree events at the VM shutdown.
> 
> Testing:
> 
> All mach5 jobs with JVMTI/JDI tests and tiers 1-6 were successfully passed on 
> 3 debug platforms.

This pull request has now been integrated.

Changeset: c5e04640
Author:    Serguei Spitsyn <sspit...@openjdk.org>
URL:       
https://git.openjdk.org/jdk/commit/c5e0464098f8f7cd9c568c7b1c3a06139453eaab
Stats:     9 lines in 2 files changed: 2 ins; 5 del; 2 mod

8291456: com/sun/jdi/ClassUnloadEventTest.java failed with: Wrong number of 
class unload events: expected 10 got 4

Reviewed-by: cjplummer, amenkov

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

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

Reply via email to