The test intermittently times out due to deadlock between 2 monitors: one monitor is JVMTI raw monitor used by agents, another is in Java (`nsk_jvmti_aod_disableEventAndFinish` does upcall) See JBS issue for details. The fix updates agents to exit raw monitors before upcall.
Testing: no failures in 1000 runs ------------- Commit messages: - fix Changes: https://git.openjdk.org/jdk/pull/25684/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=25684&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8358094 Stats: 24 lines in 5 files changed: 4 ins; 4 del; 16 mod Patch: https://git.openjdk.org/jdk/pull/25684.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/25684/head:pull/25684 PR: https://git.openjdk.org/jdk/pull/25684