8287726: Fix JVMTI tests with "requires vm.continuations" after JDK-8287496

Reviewed-by: alanb, rehn, lmesnik
This commit is contained in:
Aleksey Shipilev 2022-06-02 15:58:08 +00:00
parent c78392db4d
commit 3cfd38caf1
69 changed files with 69 additions and 69 deletions
test/hotspot/jtreg
ProblemList.txt
serviceability/jvmti
GetOwnedMonitorInfo
GetOwnedMonitorStackDepthInfo
HeapMonitor/MyPackage
RedefineClasses
events
Breakpoint/breakpoint01
ClassLoad/classload01
ClassPrepare/classprep01
Exception/exception01
ExceptionCatch/excatch01
FieldAccess
fieldacc01
fieldacc02
fieldacc03
fieldacc04
FieldModification
fieldmod01
fieldmod02
FramePop
framepop01
framepop02
MethodEntry
MethodExit
MonitorContendedEnter/mcontenter01
MonitorContendedEntered/mcontentered01
MonitorWait/monitorwait01
MonitorWaited/monitorwaited01
SingleStep
singlestep01
singlestep03
stress
StackTrace
ThreadLocalStorage/SetGetThreadLocalStorageStressTest
thread
GetAllThreads/allthr01
GetCurrentContendedMonitor
GetFrameCount/framecnt01
GetStackTrace
GetStackTraceCurrentThreadTest
getstacktr03
getstacktr04
getstacktr05
getstacktr06
getstacktr07
getstacktr08
GetThreadInfo/thrinfo01
GetThreadState
vthread
BreakpointInYieldTest
ContFramePopTest
ContStackDepthTest
ContYieldBreakPointTest
ContinuationTest
GetSetLocalTest
InterruptThreadTest
MethodExitTest
NullAsCurrentThreadTest
PinnedTaskTest
RawMonitorTest
RedefineClasses
SelfSuspendDisablerTest
SuspendResume1
SuspendResume2
SuspendResumeAll
VThreadMonitorTest
VThreadNotifyFramePopTest
VThreadTest
VThreadUnsupportedTest
WaitNotifySuspendedVThreadTest
premain

@ -176,72 +176,3 @@ runtime/jni/IsVirtualThread/IsVirtualThread.java
runtime/vthread/JNIMonitor/JNIMonitor.java 8286642 generic-i586
runtime/vthread/RedefineClass.java 8286642 generic-i586
runtime/vthread/TestObjectAllocationSampleEvent.java 8286642 generic-i586
serviceability/jvmti/events/Breakpoint/breakpoint01/breakpoint01.java 8286642 generic-i586
serviceability/jvmti/events/ClassLoad/classload01/classload01.java 8286642 generic-i586
serviceability/jvmti/events/ClassPrepare/classprep01/classprep01.java 8286642 generic-i586
serviceability/jvmti/events/Exception/exception01/exception01.java 8286642 generic-i586
serviceability/jvmti/events/ExceptionCatch/excatch01/excatch01.java 8286642 generic-i586
serviceability/jvmti/events/FieldAccess/fieldacc01/fieldacc01.java 8286642 generic-i586
serviceability/jvmti/events/FieldAccess/fieldacc02/fieldacc02.java 8286642 generic-i586
serviceability/jvmti/events/FieldAccess/fieldacc03/fieldacc03.java 8286642 generic-i586
serviceability/jvmti/events/FieldAccess/fieldacc04/fieldacc04.java 8286642 generic-i586
serviceability/jvmti/events/FieldModification/fieldmod01/fieldmod01.java 8286642 generic-i586
serviceability/jvmti/events/FieldModification/fieldmod02/fieldmod02.java 8286642 generic-i586
serviceability/jvmti/events/FramePop/framepop01/framepop01.java 8286642 generic-i586
serviceability/jvmti/events/FramePop/framepop02/framepop02.java#id0 8286642 generic-i586
serviceability/jvmti/events/FramePop/framepop02/framepop02.java#id1 8286642 generic-i586
serviceability/jvmti/events/MethodEntry/mentry01/mentry01.java 8286642 generic-i586
serviceability/jvmti/events/MethodEntry/mentry02/mentry02.java 8286642 generic-i586
serviceability/jvmti/events/MethodExit/mexit01/mexit01.java 8286642 generic-i586
serviceability/jvmti/events/MethodExit/mexit02/mexit02.java 8286642 generic-i586
serviceability/jvmti/events/MonitorContendedEnter/mcontenter01/mcontenter01.java 8286642 generic-i586
serviceability/jvmti/events/MonitorContendedEntered/mcontentered01/mcontentered01.java 8286642 generic-i586
serviceability/jvmti/events/MonitorWait/monitorwait01/monitorwait01.java 8286642 generic-i586
serviceability/jvmti/events/MonitorWaited/monitorwaited01/monitorwaited01.java 8286642 generic-i586
serviceability/jvmti/events/SingleStep/singlestep01/singlestep01.java 8286642 generic-i586
serviceability/jvmti/events/SingleStep/singlestep03/singlestep03.java 8286642 generic-i586
serviceability/jvmti/GetOwnedMonitorInfo/GetOwnedMonitorInfoTest.java 8286642 generic-i586
serviceability/jvmti/GetOwnedMonitorStackDepthInfo/GetOwnedMonitorStackDepthInfoTest.java 8286642 generic-i586
serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorVMEventsTest.java#id1 8286642 generic-i586
serviceability/jvmti/RedefineClasses/RedefineRunningMethods.java 8286642 generic-i586
serviceability/jvmti/RedefineClasses/RedefineRunningMethodsWithBacktrace.java 8286642 generic-i586
serviceability/jvmti/stress/StackTrace/NotSuspended/GetStackTraceNotSuspendedStressTest.java 8286642 generic-i586
serviceability/jvmti/stress/StackTrace/Suspended/GetStackTraceSuspendedStressTest.java 8286642 generic-i586
serviceability/jvmti/stress/ThreadLocalStorage/SetGetThreadLocalStorageStressTest/SetGetThreadLocalStorageStressTest.java 8286642 generic-i586
serviceability/jvmti/thread/GetAllThreads/allthr01/allthr01.java 8286642 generic-i586
serviceability/jvmti/thread/GetCurrentContendedMonitor/contmon01/contmon01.java 8286642 generic-i586
serviceability/jvmti/thread/GetCurrentContendedMonitor/contmon02/contmon02.java 8286642 generic-i586
serviceability/jvmti/thread/GetFrameCount/framecnt01/framecnt01.java 8286642 generic-i586
serviceability/jvmti/thread/GetStackTrace/GetStackTraceCurrentThreadTest/GetStackTraceCurrentThreadTest.java 8286642 generic-i586
serviceability/jvmti/thread/GetStackTrace/getstacktr03/getstacktr03.java 8286642 generic-i586
serviceability/jvmti/thread/GetStackTrace/getstacktr04/getstacktr04.java 8286642 generic-i586
serviceability/jvmti/thread/GetStackTrace/getstacktr05/getstacktr05.java 8286642 generic-i586
serviceability/jvmti/thread/GetStackTrace/getstacktr06/getstacktr06.java 8286642 generic-i586
serviceability/jvmti/thread/GetStackTrace/getstacktr07/getstacktr07.java 8286642 generic-i586
serviceability/jvmti/thread/GetStackTrace/getstacktr08/getstacktr08.java 8286642 generic-i586
serviceability/jvmti/thread/GetThreadInfo/thrinfo01/thrinfo01.java 8286642 generic-i586
serviceability/jvmti/thread/GetThreadState/thrstat01/thrstat01.java 8286642 generic-i586
serviceability/jvmti/thread/GetThreadState/thrstat03/thrstat03.java 8286642 generic-i586
serviceability/jvmti/thread/GetThreadState/thrstat05/thrstat05.java 8286642 generic-i586
serviceability/jvmti/vthread/BreakpointInYieldTest/BreakpointInYieldTest.java 8286642 generic-i586
serviceability/jvmti/vthread/ContFramePopTest/ContFramePopTest.java 8286642 generic-i586
serviceability/jvmti/vthread/ContStackDepthTest/ContStackDepthTest.java 8286642 generic-i586
serviceability/jvmti/vthread/ContYieldBreakPointTest/ContYieldBreakPointTest.java 8286642 generic-i586
serviceability/jvmti/vthread/ContinuationTest/ContinuationTest.java 8286642 generic-i586
serviceability/jvmti/vthread/GetSetLocalTest/GetSetLocalTest.java 8286642 generic-i586
serviceability/jvmti/vthread/InterruptThreadTest/InterruptThreadTest.java 8286642 generic-i586
serviceability/jvmti/vthread/MethodExitTest/MethodExitTest.java 8286642 generic-i586
serviceability/jvmti/vthread/NullAsCurrentThreadTest/NullAsCurrentThreadTest.java 8286642 generic-i586
serviceability/jvmti/vthread/PinnedTaskTest/PinnedTaskTest.java 8286642 generic-i586
serviceability/jvmti/vthread/RawMonitorTest/RawMonitorTest.java 8286642 generic-i586
serviceability/jvmti/vthread/RedefineClasses/RedefineRunningMethods.java 8286642 generic-i586
serviceability/jvmti/vthread/SelfSuspendDisablerTest/SelfSuspendDisablerTest.java 8286642 generic-i586
serviceability/jvmti/vthread/SuspendResume1/SuspendResume1.java 8286642 generic-i586
serviceability/jvmti/vthread/SuspendResume2/SuspendResume2.java 8286642 generic-i586
serviceability/jvmti/vthread/SuspendResumeAll/SuspendResumeAll.java 8286642 generic-i586
serviceability/jvmti/vthread/VThreadMonitorTest/VThreadMonitorTest.java 8286642 generic-i586
serviceability/jvmti/vthread/VThreadNotifyFramePopTest/VThreadNotifyFramePopTest.java 8286642 generic-i586
serviceability/jvmti/vthread/VThreadTest/VThreadTest.java 8286642 generic-i586
serviceability/jvmti/vthread/VThreadUnsupportedTest/VThreadUnsupportedTest.java 8286642 generic-i586
serviceability/jvmti/vthread/WaitNotifySuspendedVThreadTest/WaitNotifySuspendedVThreadTest.java 8286642 generic-i586
serviceability/jvmti/vthread/premain/AgentWithVThreadTest.java 8286642 generic-i586

@ -27,6 +27,7 @@
* @bug 8185164
* @summary Checks that a contended monitor does not show up in the list of owned monitors
* @requires vm.jvmti
* @requires vm.continuations
* @compile --enable-preview -source ${jdk.version} GetOwnedMonitorInfoTest.java
* @run main/othervm/native --enable-preview -agentlib:GetOwnedMonitorInfoTest GetOwnedMonitorInfoTest
*/

@ -27,6 +27,7 @@
* @bug 8153629
* @summary Need to cover JVMTI's GetOwnedMonitorStackDepthInfo function
* @requires vm.jvmti
* @requires vm.continuations
* @compile --enable-preview -source ${jdk.version} GetOwnedMonitorStackDepthInfoTest.java
* @run main/othervm/native --enable-preview -agentlib:GetOwnedMonitorStackDepthInfoTest GetOwnedMonitorStackDepthInfoTest
*/

@ -46,6 +46,7 @@ import java.util.concurrent.ThreadFactory;
* @summary Verifies that when the VM event is sent, sampled events are also collected.
* @requires vm.jvmti
* @requires !vm.graal.enabled
* @requires vm.continuations
* @build Frame HeapMonitor
* @compile --enable-preview -source ${jdk.version} HeapMonitorVMEventsTest.java
* @run main/othervm/native --enable-preview

@ -26,6 +26,7 @@
* @bug 8055008 8197901 8010319
* @summary Redefine EMCP and non-EMCP methods that are running in an infinite loop
* @requires vm.jvmti
* @requires vm.continuations
* @library /test/lib
* @modules java.base/jdk.internal.misc
* @modules java.compiler

@ -26,6 +26,7 @@
* @bug 8087315 8010319
* @summary Get old method's stack trace elements after GC
* @requires vm.jvmti
* @requires vm.continuations
* @library /test/lib
* @modules java.base/jdk.internal.misc
* @modules java.compiler

@ -38,6 +38,7 @@ import java.io.*;
* SetBreakpoint().
* COMMENTS
*
* @requires vm.continuations
* @library /test/lib
*
* @comment make sure breakpoint01 is compiled with full debug info

@ -42,6 +42,7 @@ import java.io.*;
* COMMENTS
* Fixed the 5031200 bug.
*
* @requires vm.continuations
* @library /test/lib
* @compile --enable-preview -source ${jdk.version} classload01.java
* @run main/othervm/native --enable-preview -agentlib:classload01 classload01

@ -40,6 +40,7 @@ import java.io.PrintStream;
* Fixed according to the bug 4651181.
* Ported from JVMDI.
*
* @requires vm.continuations
* @library /test/lib
* @compile --enable-preview -source ${jdk.version} classprep01.java
* @run main/othervm/native --enable-preview -agentlib:classprep01 classprep01

@ -39,6 +39,7 @@ import java.io.PrintStream;
* COMMENTS
* Ported from JVMDI.
*
* @requires vm.continuations
* @library /test/lib
* @compile exception01a.jasm
* @compile --enable-preview -source ${jdk.version} exception01.java

@ -37,6 +37,7 @@
* COMMENTS
* Ported from JVMDI.
*
* @requires vm.continuations
* @library /test/lib
* @compile excatch01a.jasm
* @compile --enable-preview -source ${jdk.version} excatch01.java

@ -35,6 +35,7 @@
* Fixed according to 4669812 bug.
* Ported from JVMDI.
*
* @requires vm.continuations
* @library /test/lib
* @compile fieldacc01a.jasm
* @compile --enable-preview -source ${jdk.version} fieldacc01.java

@ -37,6 +37,7 @@ import java.io.PrintStream;
* Fixed according to 4669812 bug.
* Ported from JVMDI.
*
* @requires vm.continuations
* @library /test/lib
* @compile --enable-preview -source ${jdk.version} fieldacc02.java
* @run main/othervm/native --enable-preview -agentlib:fieldacc02 fieldacc02

@ -38,6 +38,7 @@ import java.io.PrintStream;
* COMMENTS
* Ported from JVMDI.
*
* @requires vm.continuations
* @library /test/lib
* @compile --enable-preview -source ${jdk.version} fieldacc03.java
* @run main/othervm/native --enable-preview -agentlib:fieldacc03 fieldacc03

@ -37,6 +37,7 @@ import java.io.PrintStream;
* COMMENTS
* Ported from JVMDI.
*
* @requires vm.continuations
* @library /test/lib
* @compile --enable-preview -source ${jdk.version} fieldacc04.java
* @run main/othervm/native --enable-preview -agentlib:fieldacc04 fieldacc04

@ -38,6 +38,7 @@ import java.io.PrintStream;
* Fixed according to 4669812 bug.
* Ported from JVMDI.
*
* @requires vm.continuations
* @library /test/lib
* @compile fieldmod01a.jasm
* @compile --enable-preview -source ${jdk.version} fieldmod01.java

@ -38,6 +38,7 @@ import java.io.PrintStream;
* Fixed according to 4669812 bug.
* Ported from JVMDI.
*
* @requires vm.continuations
* @library /test/lib
* @compile --enable-preview -source ${jdk.version} fieldmod02.java
* @run main/othervm/native --enable-preview -agentlib:fieldmod02 fieldmod02

@ -38,6 +38,7 @@
* COMMENTS
* Ported from JVMDI.
*
* @requires vm.continuations
* @library /test/lib
* @compile --enable-preview -source ${jdk.version} framepop01a.java
* @run main/othervm/native --enable-preview -agentlib:framepop01 framepop01

@ -38,12 +38,14 @@
* 4504077 java: dbx should not hold on to a frameid after thread suspension
* Ported from JVMDI.
*
* @requires vm.continuations
* @library /test/lib
* @compile --enable-preview -source ${jdk.version} framepop02.java
* @run main/othervm/native --enable-preview -agentlib:framepop02 framepop02 platform
*/
/*
* @test
* @requires vm.continuations
* @library /test/lib
* @compile --enable-preview -source ${jdk.version} framepop02.java
* @run main/othervm/native --enable-preview -agentlib:framepop02 framepop02 virtual

@ -41,6 +41,7 @@ import java.io.PrintStream;
* Ported from JVMDI.
* Fixed the 5004632 bug.
*
* @requires vm.continuations
* @library /test/lib
* @compile --enable-preview -source ${jdk.version} mentry01.java
* @run main/othervm/native --enable-preview -agentlib:mentry01 mentry01

@ -39,6 +39,7 @@ import java.io.PrintStream;
* The test reproduced the bug on winNT 1.0fcs-E build.
* Ported from JVMDI test /nsk/regression/b4248826.
*
* @requires vm.continuations
* @library /test/lib
* @compile --enable-preview -source ${jdk.version} mentry02.java
* @run main/othervm/native --enable-preview -agentlib:mentry02 mentry02

@ -42,6 +42,7 @@ import java.io.PrintStream;
* Ported from JVMDI.
* Fixed the 5004632 bug.
*
* @requires vm.continuations
* @library /test/lib
* @compile mexit01a.jasm
* @compile --enable-preview -source ${jdk.version} mexit01.java

@ -43,6 +43,7 @@ import java.io.PrintStream;
* Ported from JVMDI.
* Fixed the 5004632 bug.
*
* @requires vm.continuations
* @library /test/lib
* @compile mexit02a.jasm
* @compile --enable-preview -source ${jdk.version} mexit02.java

@ -41,6 +41,7 @@ import jdk.test.lib.jvmti.DebugeeClass;
* and save JNIEnv pointer now passed as argument.
* 1000 ms of sleep added to main thread to reduce probability of bad racing.
*
* @requires vm.continuations
* @library /test/lib
* @compile --enable-preview -source ${jdk.version} mcontenter01.java
* @run main/othervm/native --enable-preview -agentlib:mcontenter01 mcontenter01 platform

@ -42,6 +42,7 @@ import java.io.PrintStream;
* - change signature of agentProc function
* and save JNIEnv pointer now passed as argument.
*
* @requires vm.continuations
* @library /test/lib
* @compile --enable-preview -source ${jdk.version} mcontentered01.java
* @run main/othervm/native --enable-preview -agentlib:mcontentered01 mcontentered01 platform

@ -42,6 +42,7 @@ import jdk.test.lib.jvmti.DebugeeClass;
* - change signature of agentProc function
* and save JNIEnv pointer now passed as argument.
*
* @requires vm.continuations
* @library /test/lib
* @compile --enable-preview -source ${jdk.version} monitorwait01.java
* @run main/othervm/native --enable-preview -agentlib:monitorwait01 monitorwait01 platform

@ -43,6 +43,7 @@ import java.io.PrintStream;
* - change signature of agentProc function
* and save JNIEnv pointer now passed as argument.
*
* @requires vm.continuations
* @library /test/lib
* @compile --enable-preview -source ${jdk.version} monitorwaited01.java
* @run main/othervm/native --enable-preview -agentlib:monitorwaited01 monitorwaited01 platform

@ -44,6 +44,7 @@ import java.io.*;
* must be received.
* COMMENTS
*
* @requires vm.continuations
* @library /test/lib
* @compile --enable-preview -source ${jdk.version} singlestep01.java
* @run main/othervm/native --enable-preview -agentlib:singlestep01 singlestep01

@ -43,6 +43,7 @@ import java.io.*;
* the agent disables the event generation.
* COMMENTS
*
* @requires vm.continuations
* @library /test/lib
* @compile --enable-preview -source ${jdk.version} singlestep03.java
* @run main/othervm/native --enable-preview -agentlib:singlestep03 singlestep03 platform

@ -24,6 +24,7 @@
/**
* @test
* @summary Verifies JVMTI GetStackTrace functions called without suspend.
* @requires vm.continuations
* @library /test/lib
* @compile --enable-preview -source ${jdk.version} GetStackTraceNotSuspendedStressTest.java
* @run main/othervm/native --enable-preview -agentlib:GetStackTraceNotSuspendedStress GetStackTraceNotSuspendedStressTest

@ -24,6 +24,7 @@
/**
* @test
* @summary Verifies JVMTI GetStackTrace functions called after vthread is suspended.
* @requires vm.continuations
* @library /test/lib
* @compile --enable-preview -source ${jdk.version} GetStackTraceSuspendedStressTest.java
* @run main/othervm/native --enable-preview -agentlib:GetStackTraceSuspendedStress GetStackTraceSuspendedStressTest

@ -39,6 +39,7 @@
* -- update properties to run jvmti stress tests non-concurrently?
*
*
* @requires vm.continuations
* @library /test/lib
* @compile --enable-preview -source ${jdk.version} SetGetThreadLocalStorageStressTest.java
* @run main/othervm/native --enable-preview -agentlib:SetGetThreadLocalStorageStress SetGetThreadLocalStorageStressTest

@ -36,6 +36,7 @@
* Fixed according to the 4480280 bug.
* Ported from JVMDI.
*
* @requires vm.continuations
* @library /test/lib
* @compile --enable-preview -source ${jdk.version} allthr01.java
* @run main/othervm/native --enable-preview -agentlib:allthr01 allthr01

@ -59,6 +59,7 @@
* - rearranged synchronization of tested thread
* - enhanced descripton
*
* @requires vm.continuations
* @library /test/lib
* @compile --enable-preview -source ${jdk.version} contmon01.java
* @run main/othervm/native --enable-preview -agentlib:contmon01 contmon01

@ -40,6 +40,7 @@
* - rearranged synchronization of tested thread
* - enhanced descripton
*
* @requires vm.continuations
* @library /test/lib
* @compile --enable-preview -source ${jdk.version} contmon02.java
* @run main/othervm/native --enable-preview -agentlib:contmon02 contmon02

@ -33,6 +33,7 @@
* COMMENTS
* Ported from JVMDI.
*
* @requires vm.continuations
* @library /test/lib
* @compile --enable-preview -source ${jdk.version} framecnt01.java
* @run main/othervm/native --enable-preview -agentlib:framecnt01 framecnt01

@ -38,6 +38,7 @@
* COMMENTS
* Ported from JVMDI.
*
* @requires vm.continuations
* @library /test/lib
* @compile --enable-preview -source ${jdk.version} GetStackTraceCurrentThreadTest.java
* @run main/othervm/native --enable-preview -agentlib:GetStackTraceCurrentThreadTest GetStackTraceCurrentThreadTest

@ -36,6 +36,7 @@
* COMMENTS
* Ported from JVMDI.
*
* @requires vm.continuations
* @library /test/lib
* @compile --enable-preview -source ${jdk.version} getstacktr03.java
* @run main/othervm/native --enable-preview -agentlib:getstacktr03 getstacktr03

@ -35,6 +35,7 @@
* COMMENTS
* Ported from JVMDI.
*
* @requires vm.continuations
* @library /test/lib
* @compile --enable-preview -source ${jdk.version} getstacktr04.java
* @run main/othervm/native --enable-preview -agentlib:getstacktr04 getstacktr04

@ -36,6 +36,7 @@
* COMMENTS
* Ported from JVMDI.
*
* @requires vm.continuations
* @library /test/lib
* @compile --enable-preview -source ${jdk.version} getstacktr05.java
* @run main/othervm/native --enable-preview -agentlib:getstacktr05 getstacktr05

@ -37,6 +37,7 @@
* COMMENTS
* Ported from JVMDI.
*
* @requires vm.continuations
* @library /test/lib
* @compile --enable-preview -source ${jdk.version} getstacktr06.java
* @run main/othervm/native --enable-preview -agentlib:getstacktr06 getstacktr06

@ -36,6 +36,7 @@
* COMMENTS
* Ported from JVMDI.
*
* @requires vm.continuations
* @library /test/lib
* @compile --enable-preview -source ${jdk.version} getstacktr07.java
* @run main/othervm/native --enable-preview -agentlib:getstacktr07 getstacktr07

@ -44,6 +44,7 @@
* COMMENTS
* Ported from JVMDI.
*
* @requires vm.continuations
* @library /test/lib
* @compile --enable-preview -source ${jdk.version} getstacktr08.java
* @run main/othervm/native --enable-preview -agentlib:getstacktr08 getstacktr08

@ -41,6 +41,7 @@
* Fixed according to the 4480280 bug.
* Ported from JVMDI.
*
* @requires vm.continuations
* @library /test/lib
* @compile --enable-preview -source ${jdk.version} thrinfo01.java
* @run main/othervm/native --enable-preview -agentlib:thrinfo01 thrinfo01

@ -72,6 +72,7 @@
* - rearranged synchronization of tested thread
* - enhanced descripton
*
* @requires vm.continuations
* @library /test/lib
* @compile --enable-preview -source ${jdk.version} thrstat01.java
* @run main/othervm/native --enable-preview -agentlib:thrstat01 thrstat01

@ -37,6 +37,7 @@
* Converted the test to use GetThreadState instead of GetThreadStatus.
* Ported from JVMDI.
*
* @requires vm.continuations
* @library /test/lib
* @compile --enable-preview -source ${jdk.version} thrstat03.java
* @run main/othervm/native --enable-preview -agentlib:thrstat03 thrstat03 5

@ -55,6 +55,7 @@
* For more information see bugs #5041847, #4980307 and J2SE 5.0+ JVMTI spec.
* COMMENTS
*
* @requires vm.continuations
* @library /test/lib
* @compile --enable-preview -source ${jdk.version} thrstat05.java
* @run main/othervm/native --enable-preview -agentlib:thrstat05 thrstat05

@ -24,6 +24,7 @@
/**
* @test
* @summary Verifies that JVMTI function return correct info in Breakpoint events in Continuation.yield0().
* @requires vm.continuations
* @compile --enable-preview -source ${jdk.version} BreakpointInYieldTest.java
* @run main/othervm/native --enable-preview -agentlib:BreakpointInYieldTest -Djdk.defaultScheduler.parallelism=2 BreakpointInYieldTest
*/

@ -24,6 +24,7 @@
/**
* @test
* @summary Verifies JVMTI support for Continuations
* @requires vm.continuations
* @compile ContFramePopTest.java
* @modules java.base/jdk.internal.vm
* @run main/othervm/native --enable-preview -agentlib:ContFramePopTest ContFramePopTest

@ -24,6 +24,7 @@
/**
* @test
* @summary Verifies JVMTI support for Continuations
* @requires vm.continuations
* @compile ContStackDepthTest.java
* @modules java.base/jdk.internal.vm
* @run main/othervm/native --enable-preview -agentlib:ContStackDepthTest ContStackDepthTest

@ -24,6 +24,7 @@
/**
* @test
* @summary Verifies setting a breakpoint in Continuation.yield() followed by single stepping
* @requires vm.continuations
* @compile ContYieldBreakPointTest.java
* @modules java.base/jdk.internal.vm
* @run main/othervm/native --enable-preview -agentlib:ContYieldBreakPointTest ContYieldBreakPointTest

@ -24,6 +24,7 @@
/**
* @test
* @summary Verifies JVMTI support for Continuations
* @requires vm.continuations
* @compile ContinuationTest.java
* @modules java.base/jdk.internal.vm
* @run main/othervm/native --enable-preview -agentlib:ContinuationTest ContinuationTest

@ -24,6 +24,7 @@
/**
* @test
* @summary Verifies JVMTI GetLocalXXX/SetLocalXXX support for virtual threads.
* @requires vm.continuations
* @library /test/lib
* @compile --enable-preview -source ${jdk.version} GetSetLocalTest.java
* @run main/othervm/native --enable-preview -agentlib:GetSetLocalTest GetSetLocalTest

@ -24,6 +24,7 @@
/**
* @test
* @summary Verifies JVMTI InterruptThread works for virtual threads.
* @requires vm.continuations
* @compile --enable-preview -source ${jdk.version} InterruptThreadTest.java
* @run main/othervm/native --enable-preview -agentlib:InterruptThreadTest InterruptThreadTest
*/

@ -24,6 +24,7 @@
/**
* @test
* @summary Verifies that MethodExit events are delivered on both carrier and virtual threads.
* @requires vm.continuations
* @compile --enable-preview -source ${jdk.version} MethodExitTest.java
* @run main/othervm/native --enable-preview -agentlib:MethodExitTest -Djdk.defaultScheduler.parallelism=2 MethodExitTest 150
*/

@ -24,6 +24,7 @@
/**
* @test
* @summary Verifies specific JVMTI functions work with current virtual thread passed as NULL.
* @requires vm.continuations
* @compile --enable-preview -source ${jdk.version} NullAsCurrentThreadTest.java
* @run main/othervm/native --enable-preview -agentlib:NullAsCurrentThreadTest=EnableVirtualThreadSupport NullAsCurrentThreadTest
*/

@ -24,6 +24,7 @@
/**
* @test
* @summary Verifies JVMTI hadles pinned virtual threads correctly.
* @requires vm.continuations
* @compile --enable-preview -source ${jdk.version} PinnedTaskTest.java
* @run main/othervm/native --enable-preview -agentlib:PinnedTaskTest PinnedTaskTest
*/

@ -24,6 +24,7 @@
/**
* @test
* @summary Verifies JVMTI RawMoitor functions works correctly on virtual threads
* @requires vm.continuations
* @compile --enable-preview -source ${jdk.version} RawMonitorTest.java
* @run main/othervm/native --enable-preview -agentlib:RawMonitorTest RawMonitorTest
*/

@ -26,6 +26,7 @@
* @bug 8055008 8197901 8010319
* @summary Redefine EMCP and non-EMCP methods that are running in an infinite loop
* @requires vm.jvmti
* @requires vm.continuations
* @library /test/lib
* @modules java.base/jdk.internal.misc java.base/jdk.internal.vm
* @modules java.compiler

@ -24,6 +24,7 @@
/*
* @test
* @summary Test verifies that selfsuspend doesn' block unmount by VTMTDisabler
* @requires vm.continuations
* @library /test/lib
* @compile --enable-preview -source ${jdk.version} SelfSuspendDisablerTest.java
* @run main/othervm/native --enable-preview -agentlib:SelfSuspendDisablerTest SelfSuspendDisablerTest

@ -25,6 +25,7 @@
* @test
* @summary Test SuspendThread/ResumeThread, SuspendThreadList/ResumeThreadList
* for virtual threads.
* @requires vm.continuations
* @library /test/lib
* @compile --enable-preview -source ${jdk.version} SuspendResume1.java
* @run driver jdk.test.lib.FileInstaller . .

@ -24,6 +24,7 @@
/*
* @test
* @summary Test SuspendAllVirtualThreads/ResumeAllVirtualThreads
* @requires vm.continuations
* @library /test/lib
* @compile --enable-preview -source ${jdk.version} SuspendResume2.java
* @run driver jdk.test.lib.FileInstaller . .

@ -24,6 +24,7 @@
/*
* @test
* @summary Test SuspendAllVirtualThreads/ResumeAllVirtualThreads
* @requires vm.continuations
* @library /test/lib
* @compile --enable-preview -source ${jdk.version} SuspendResumeAll.java
* @run driver jdk.test.lib.FileInstaller . .

@ -25,6 +25,7 @@
/**
* @test
* @summary Test JVMTI Monitor functions for virtual threads
* @requires vm.continuations
* @compile --enable-preview -source ${jdk.version} VThreadMonitorTest.java
* @run main/othervm/native --enable-preview -agentlib:VThreadMonitorTest VThreadMonitorTest
*/

@ -24,6 +24,7 @@
/**
* @test
* @summary Verifies that FRAME_POP event is delivered when called from URL.openStream().
* @requires vm.continuations
* @compile --enable-preview -source ${jdk.version} VThreadNotifyFramePopTest.java
* @run main/othervm/native
* --enable-preview

@ -24,6 +24,7 @@
/**
* @test
* @summary Verifies JVMTI support for VThreads.
* @requires vm.continuations
* @compile --enable-preview -source ${jdk.version} VThreadTest.java
* @run main/othervm/native --enable-preview -agentlib:VThreadTest VThreadTest
*/

@ -24,6 +24,7 @@
/**
* @test
* @summary Verifies that specific JVMTI functions returns JVMTI_ERROR_INVALID_THREAD if called with virtual threads.
* @requires vm.continuations
* @compile --enable-preview -source ${jdk.version} VThreadUnsupportedTest.java
* @run main/othervm/native --enable-preview -agentlib:VThreadUnsupportedTest VThreadUnsupportedTest
*/

@ -39,6 +39,7 @@
* -- update properties to run jvmti stress tests non-concurrently?
*
*
* @requires vm.continuations
* @library /test/lib
* @compile --enable-preview -source ${jdk.version} WaitNotifySuspendedVThreadTest.java
* @run main/othervm/native

@ -28,6 +28,7 @@ import jdk.test.lib.process.ProcessTools;
* @test
* @summary Test verifies that virtual threads can be executed in premain()
* @requires vm.jvmti
* @requires vm.continuations
* @library /test/lib
* @compile --enable-preview -source ${jdk.version} AgentWithVThread.java AgentWithVThreadTest.java
* @run driver jdk.test.lib.util.JavaAgentBuilder AgentWithVThread agent.jar