Converted 14 nsk/jvmti/unit tests from extends Thread to extends ThreadWrapper so they can run with both platform and virtual threads
For tests with native methods expecting a Thread (GetStackTrace, GetFrameCount, CheckMonitorInfo, RegisterCompletedThread), changed the native signatures to take Thread and pass .getThread() at the call sites earlyretbase is left unconverted its native code does GetObjectClass on the thread to find activeMethod(), so it needs the wrapper class for method lookup but the real Thread for JVMTI operations. That one probably needs a separate approach. - [x] I confirm that I make this contribution in accordance with the [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). ------------- Commit messages: - 8382273: Update nsk/jvmti/unit tests to use ThreadWrapper Changes: https://git.openjdk.org/jdk/pull/31043/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=31043&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8382273 Stats: 62 lines in 14 files changed: 14 ins; 0 del; 48 mod Patch: https://git.openjdk.org/jdk/pull/31043.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/31043/head:pull/31043 PR: https://git.openjdk.org/jdk/pull/31043
