From bbcd98580d84101011773bcd9159d51be893e062 Mon Sep 17 00:00:00 2001 From: Shiv Shah Date: Tue, 26 May 2026 15:07:13 +0000 Subject: [PATCH] 8384958: Regression of jvmti/init/GetAllStackTraces/getallstktr001.java caused by JDK-8382273 Reviewed-by: lmesnik, sspitsyn --- .../nsk/jvmti/unit/GetAllStackTraces/getallstktr001.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/hotspot/jtreg/vmTestbase/nsk/jvmti/unit/GetAllStackTraces/getallstktr001.java b/test/hotspot/jtreg/vmTestbase/nsk/jvmti/unit/GetAllStackTraces/getallstktr001.java index b0172ba01b5..c92498fd243 100644 --- a/test/hotspot/jtreg/vmTestbase/nsk/jvmti/unit/GetAllStackTraces/getallstktr001.java +++ b/test/hotspot/jtreg/vmTestbase/nsk/jvmti/unit/GetAllStackTraces/getallstktr001.java @@ -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) {