RFR: 8313654: Test WaitNotifySuspendedVThreadTest.java timed out

Leonid Mesnik lmesnik at openjdk.org
Tue Aug 8 19:03:37 UTC 2023


Test might times out if it suspend thread before it starts breakpoint event handler.
The fix is to replace sleep with better synchronization and suspend virtual thread only when it runs native code.

Also, the completed monitor is acquired earlier to avoid racing when completing test.

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

Commit messages:
 - 8313654: Test WaitNotifySuspendedVThreadTest.java timed out

Changes: https://git.openjdk.org/jdk/pull/15196/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=15196&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8313654
  Stats: 35 lines in 2 files changed: 14 ins; 19 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/15196.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/15196/head:pull/15196

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


More information about the serviceability-dev mailing list