< prev index next >

test/jdk/java/lang/Thread/virtual/stress/GetStackTraceALotWhenPinned.java

Print this page
@@ -26,19 +26,19 @@
   * @bug 8322818
   * @summary Stress test Thread.getStackTrace on a virtual thread that is pinned
   * @requires vm.debug != true
   * @modules java.base/java.lang:+open
   * @library /test/lib
-  * @run main/othervm GetStackTraceALotWhenPinned 500000
+  * @run main/othervm --enable-native-access=ALL-UNNAMED GetStackTraceALotWhenPinned 500000
   */
  
  /*
   * @test
   * @requires vm.debug == true
   * @modules java.base/java.lang:+open
   * @library /test/lib
-  * @run main/othervm/timeout=300 GetStackTraceALotWhenPinned 200000
+  * @run main/othervm/timeout=300 --enable-native-access=ALL-UNNAMED GetStackTraceALotWhenPinned 200000
   */
  
  import java.time.Instant;
  import java.util.concurrent.atomic.AtomicInteger;
  import java.util.concurrent.locks.LockSupport;
< prev index next >