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

Reviewed-by: lmesnik, sspitsyn
This commit is contained in:
Shiv Shah 2026-05-26 15:07:13 +00:00 committed by Leonid Mesnik
parent c221711a22
commit bbcd98580d

View File

@ -23,7 +23,6 @@
package nsk.jvmti.unit.GetAllStackTraces;
import jdk.test.lib.thread.ThreadWrapper;
import java.io.PrintStream;
import nsk.share.Consts;
@ -118,8 +117,12 @@ public class getallstktr001 {
}
return GetResult();
}
// Note: TestThread must extend Thread, not ThreadWrapper. This test uses
// JVMTI GetAllStackTraces which only returns platform threads, and 40
// threads blocking on native RawMonitorEnter pins carriers causing deadlock.
// See JDK-8384958.
static class TestThread extends ThreadWrapper {
static class TestThread extends Thread {
static int counter=0;
int ind;
public TestThread(String name) {