The internal JVM TI `JvmtiHandshake` and `JvmtiUnitedHandshakeClosure` classes were introduced in the JDK 22 to unify/simplify the JVM TI functions supporting implementation of the virtual threads. This enhancement is to refactor JVM TI `GetCurrentContendedMonitor` function on the base of `JvmtiHandshake` and `JvmtiUnitedHandshakeClosure` classes.
Testing: - Ran mach5 tiers 1-6 ------------- Commit messages: - 8328758: GetCurrentContendedMonitor function should use JvmtiHandshake Changes: https://git.openjdk.org/jdk/pull/18444/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18444&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328758 Stats: 57 lines in 3 files changed: 13 ins; 32 del; 12 mod Patch: https://git.openjdk.org/jdk/pull/18444.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18444/head:pull/18444 PR: https://git.openjdk.org/jdk/pull/18444