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. ------------- Commit messages: - Fix issue with getting two events quickly Changes: https://git.openjdk.org/jdk/pull/27370/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=27370&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8367318 Stats: 15 lines in 2 files changed: 4 ins; 4 del; 7 mod Patch: https://git.openjdk.org/jdk/pull/27370.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/27370/head:pull/27370 PR: https://git.openjdk.org/jdk/pull/27370
