-
Bug
-
Resolution: Fixed
-
P2
-
22
-
b03
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8313755 | 21.0.1 | Christoph Langer | P2 | Closed | Fixed | b06 |
This test is very sensitive to changes to Thread/VirtualThread as the test expects to see specific frames in stack traces. JDK-8308609 has removed an override of the internal runWith method so this test needs adjusting.
This should fix it:
--- a/test/hotspot/jtreg/serviceability/jvmti/thread/GetStackTrace/getstacktr03/libgetstacktr03.cpp
+++ b/test/hotspot/jtreg/serviceability/jvmti/thread/GetStackTrace/getstacktr03/libgetstacktr03.cpp
@@ -44,7 +44,7 @@ static frame_info expected_virtual_frames[] = {
{"Lgetstacktr03;", "dummy", "()V"},
{"Lgetstacktr03;", "chain", "()V"},
{"Lgetstacktr03$Task;", "run", "()V"},
- {"Ljava/lang/VirtualThread;", "runWith", "(Ljava/lang/Object;Ljava/lang/Runnable;)V"},
+ {"Ljava/lang/Thread;", "runWith", "(Ljava/lang/Object;Ljava/lang/Runnable;)V"},
{"Ljava/lang/VirtualThread;", "run", "(Ljava/lang/Runnable;)V"},
{"Ljava/lang/VirtualThread$VThreadContinuation$1;", "run", "()V"},
{"Ljdk/internal/vm/Continuation;", "enter0", "()V"},
This should fix it:
--- a/test/hotspot/jtreg/serviceability/jvmti/thread/GetStackTrace/getstacktr03/libgetstacktr03.cpp
+++ b/test/hotspot/jtreg/serviceability/jvmti/thread/GetStackTrace/getstacktr03/libgetstacktr03.cpp
@@ -44,7 +44,7 @@ static frame_info expected_virtual_frames[] = {
{"Lgetstacktr03;", "dummy", "()V"},
{"Lgetstacktr03;", "chain", "()V"},
{"Lgetstacktr03$Task;", "run", "()V"},
- {"Ljava/lang/VirtualThread;", "runWith", "(Ljava/lang/Object;Ljava/lang/Runnable;)V"},
+ {"Ljava/lang/Thread;", "runWith", "(Ljava/lang/Object;Ljava/lang/Runnable;)V"},
{"Ljava/lang/VirtualThread;", "run", "(Ljava/lang/Runnable;)V"},
{"Ljava/lang/VirtualThread$VThreadContinuation$1;", "run", "()V"},
{"Ljdk/internal/vm/Continuation;", "enter0", "()V"},
- backported by
-
JDK-8313755 serviceability/jvmti/thread/GetStackTrace/getstacktr03/getstacktr03.java failing
-
- Closed
-
- relates to
-
JDK-8308609 java/lang/ScopedValue/StressStackOverflow.java fails with "-XX:-VMContinuations"
-
- Closed
-
- links to
-
Commit openjdk/jdk21u/90249f0a
-
Commit openjdk/jdk/16134f44
-
Review openjdk/jdk21u/36
-
Review openjdk/jdk/14524
(1 links to)