On Thu, 18 Sep 2025 18:01:48 GMT, Chris Plummer <[email protected]> wrote:

> Fixed an issue with a race with two events coming in close to the same time, 
> the first of which does not suspend any debuggee threads. More details in the 
> first comment.
> 
> Tested by running all vmTestbase/nsk/jdi tests 25x times on all platforms 
> both with and w/o virtual threads. Also ran all tier5 svc tests.

The fix looks good.

> Note I also removed the synchronize(EventHandler.this) from the listener. 
> EventHandler.run() already does the same synchronize before calling the 
> listener. I did the same in the listener being used for the "breakoint for 
> communication". I checked all other eventReceived() callbacks, and didn't 
> find any others using this synchronization.

I see the same synchronization in the listener for VMDisconnectEvent (starting 
from line 345 in EventHandler.java)

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

PR Comment: https://git.openjdk.org/jdk/pull/27370#issuecomment-3330907343

Reply via email to