getallstktr001 is not virtual-thread-safe. JVMTI GetAllStackTraces() only 
returns platform thread stacks, not virtual threads. Additionally, 40 threads 
all block on native RawMonitorEnter() which pins carrier threads and causes 
deadlock when run as virtual threads (confirmed during JDK-8382273 testing). 
Reverted TestThread to extends Thread.

---------
- [x] I confirm that I make this contribution in accordance with the [OpenJDK 
Interim AI Policy](https://openjdk.org/legal/ai).

-------------

Commit messages:
 - 8384958: Revert ThreadWrapper in getallstktr001 - test is not 
virtual-thread-safe

Changes: https://git.openjdk.org/jdk/pull/31220/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=31220&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8384958
  Stats: 6 lines in 1 file changed: 4 ins; 1 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/31220.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/31220/head:pull/31220

PR: https://git.openjdk.org/jdk/pull/31220

Reply via email to