On Wed, 20 May 2026 15:05:36 GMT, Shiv Shah <[email protected]> wrote:

> 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).

This pull request has now been integrated.

Changeset: bbcd9858
Author:    Shiv Shah <[email protected]>
Committer: Leonid Mesnik <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/bbcd98580d84101011773bcd9159d51be893e062
Stats:     6 lines in 1 file changed: 4 ins; 1 del; 1 mod

8384958: Regression of jvmti/init/GetAllStackTraces/getallstktr001.java caused 
by JDK-8382273

Reviewed-by: lmesnik, sspitsyn

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

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

Reply via email to