This fixes the issue with lack of synchronization between JVMTI thread suspend and resume functions in a self-suspend case. More detailed fix description is in the first PR comment.
Testing: Ran mach5 tiers 1-6. ------------- Commit messages: - 8316682: serviceability/jvmti/vthread/SelfSuspendDisablerTest timed out Changes: https://git.openjdk.org/jdk/pull/24269/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=24269&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8316682 Stats: 121 lines in 9 files changed: 69 ins; 33 del; 19 mod Patch: https://git.openjdk.org/jdk/pull/24269.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/24269/head:pull/24269 PR: https://git.openjdk.org/jdk/pull/24269