This fixes the crash when printing deadlocks when the only lock held for the thread in the deadlock is the JVMTI raw monitor lock. This also fixes deadlock detection for only raw monitor locks and adds a test for it.
make test TEST="serviceability/dcmd/thread vmTestbase/nsk/monitoring/ThreadMXBean/ThreadInfo/Deadlock serviceability/jvmti/SuspendWithRawMonitorEnter serviceability/jvmti/vthread/RawMonitorTest" Tested with jvmti deadlock detection tests above, and tier 1-4 in progress. --------- - [x] I confirm that I make this contribution in accordance with the [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). ------------- Commit messages: - Cleanup - 8253442: bigapps SIGSEGV in DeadlockCycle::print_on_with Changes: https://git.openjdk.org/jdk/pull/32092/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=32092&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8253442 Stats: 236 lines in 3 files changed: 234 ins; 1 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/32092.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/32092/head:pull/32092 PR: https://git.openjdk.org/jdk/pull/32092
