RFR: 8322818: Thread::getStackTrace can fail with InternalError if virtual thread is timed-parked when pinned

Alan Bateman alanb at openjdk.org
Tue Jan 2 15:24:08 UTC 2024


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


More information about the core-libs-dev mailing list