Missed by JDK-8312498, VirtualThread::tryGetStackTrace doesn't handle the TIMED_PINNED state so it's possible for Thread::getStackTrace to throw InternalError when invoked on a virtual thread that quickly transitions from unmounted to timed-park-while-pinned. This one is needs a stress test to reproduce.
------------- Commit messages: - No need to restrict stress test to VMContinuations - Initial commit Changes: https://git.openjdk.org/jdk/pull/17217/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=17217&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8322818 Stats: 78 lines in 2 files changed: 75 ins; 0 del; 3 mod Patch: https://git.openjdk.org/jdk/pull/17217.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/17217/head:pull/17217 PR: https://git.openjdk.org/jdk/pull/17217