The change fixes "Thread.print" diagnostic command when mounted virtual thread is waiting on the class initialization monitor.
Testing: new test, tier1 sanity run ------------- Commit messages: - fix Changes: https://git.openjdk.org/jdk/pull/25367/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=25367&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8356222 Stats: 125 lines in 4 files changed: 118 ins; 0 del; 7 mod Patch: https://git.openjdk.org/jdk/pull/25367.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/25367/head:pull/25367 PR: https://git.openjdk.org/jdk/pull/25367