< prev index next > test/hotspot/jtreg/serviceability/jvmti/vthread/SuspendResume1/SuspendResume1.java
Print this page
/*
* @test id=default
* @summary Test SuspendThread/ResumeThread, SuspendThreadList/ResumeThreadList
* for virtual threads.
+ * @requires vm.debug != true
* @library /test/lib
* @compile SuspendResume1.java
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm/native/timeout=600
* -Djdk.virtualThreadScheduler.maxPoolSize=1
* -agentlib:SuspendResume1
* SuspendResume1
*/
+ /*
+ * @test id=debug
+ * @requires vm.debug == true
+ * @library /test/lib
+ * @compile SuspendResume1.java
+ * @run driver jdk.test.lib.FileInstaller . .
+ * @run main/othervm/native/timeout=600
+ * -Djdk.virtualThreadScheduler.maxPoolSize=1
+ * -agentlib:SuspendResume1
+ * -XX:-VerifyContinuations
+ * SuspendResume1
+ */
+
/*
* @test id=no-vmcontinuations
* @requires vm.continuations
* @library /test/lib
* @compile SuspendResume1.java
// ensure thread is ready
public void ensureReady() {
try {
while (!threadReady) {
- sleep(1000);
+ sleep(100);
}
} catch (InterruptedException e) {
throw new RuntimeException("Interruption while preparing tested thread: \n\t" + e);
}
}
< prev index next >