< prev index next >

test/hotspot/jtreg/serviceability/jvmti/vthread/SuspendResume1/SuspendResume1.java

Print this page
@@ -23,19 +23,33 @@
  
  /*
   * @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

@@ -166,11 +180,11 @@
  
      // 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 >