From 1c0f84602ee72fbc32100d022f102508bab0f650 Mon Sep 17 00:00:00 2001 From: "yunyao.zxl" Date: Thu, 30 Jul 2020 15:08:23 +0800 Subject: [PATCH] [Wisp] Modify tests after Wisp experimental flags change Summary: Add -XX:+UnlockExperimentalVMOptions to all wisp tests Test Plan: all Wisp tests Reviewed-by: yuleil, shiyuexw, sanhong Issue: https://github.com/alibaba/dragonwell8/issues/113 --- .../alibaba/wisp/ConfigurationCompatibilityCheckTest.java | 1 + test/com/alibaba/wisp/CoroutineTest.java | 2 +- test/com/alibaba/wisp/ExecutionTest.java | 2 +- test/com/alibaba/wisp/IoTest.java | 2 +- test/com/alibaba/wisp/LoadClassInnerWispGuard.java | 1 + test/com/alibaba/wisp/NormalExitTest.java | 2 +- test/com/alibaba/wisp/ParkTest.java | 2 +- test/com/alibaba/wisp/TestWispDetailCounter.java | 2 +- test/com/alibaba/wisp/WispMonitorDataTest.java | 2 +- test/com/alibaba/wisp/boot/UnsafeDependencyBugTest.java | 2 +- test/com/alibaba/wisp/bug/CancelTimerAndSleepTest.java | 2 +- test/com/alibaba/wisp/bug/Id2TaskMapLeakTest.java | 2 +- test/com/alibaba/wisp/bug/ReleaseWispSocketAndExitTest.java | 2 +- test/com/alibaba/wisp/bug/ResetTaskCancelTimerBugTest.java | 2 +- test/com/alibaba/wisp/bug/SelectorInitCriticalTest.java | 2 +- test/com/alibaba/wisp/bug/TestThreadStackTrace.sh | 2 +- test/com/alibaba/wisp/bug/ThreadLockTest.java | 2 +- .../com/alibaba/wisp/bug/ThreadPoolFastShutdownBugTest.java | 2 +- test/com/alibaba/wisp/bug/WispSelectorReadyOpsTest.java | 2 +- .../wisp/bug/WispSocketLeakWhenConnectTimeoutTest.java | 2 +- test/com/alibaba/wisp/close/WispDestroyTest.java | 2 +- test/com/alibaba/wisp/env/CtxClassLoaderIsolateTest.java | 2 +- test/com/alibaba/wisp/io/BlockingAccept2Test.java | 2 +- test/com/alibaba/wisp/io/BlockingAcceptTest.java | 4 ++-- test/com/alibaba/wisp/io/CreateFdOnDemandTest.java | 2 +- test/com/alibaba/wisp/io/DatagramSocketTest.java | 2 +- test/com/alibaba/wisp/io/GlobalPollerTest.java | 2 +- test/com/alibaba/wisp/io/ReuseUdpSocektBufTest.java | 2 +- test/com/alibaba/wisp/io/ShareFdTest.java | 2 +- test/com/alibaba/wisp/io/SocketTest.java | 2 +- test/com/alibaba/wisp/io/WispSocketCloseTest.java | 2 +- test/com/alibaba/wisp/lock/AQSTest.java | 2 +- test/com/alibaba/wisp/lock/ElisionSpinTest.java | 2 +- test/com/alibaba/wisp/lock/LockTest.java | 2 +- test/com/alibaba/wisp/lock/ParkNanoTest.java | 2 +- test/com/alibaba/wisp/lock/UnsafeParkTest.java | 2 +- test/com/alibaba/wisp/monitor/C2SyncMethodTest.java | 2 +- test/com/alibaba/wisp/monitor/FinalizerTest.java | 2 +- test/com/alibaba/wisp/monitor/JNICriticalTest.java | 2 +- test/com/alibaba/wisp/monitor/LazyUnparkBugTest.java | 2 +- test/com/alibaba/wisp/monitor/PassTokenTest.java | 6 +++--- test/com/alibaba/wisp/monitor/SynchronizedTest.java | 2 +- test/com/alibaba/wisp/monitor/WispExitTest.java | 2 +- test/com/alibaba/wisp/thread/DaemonTest.java | 2 +- test/com/alibaba/wisp/thread/DaemonThreadGroupTest.java | 2 +- .../wisp/thread/DisableThreadAsWispAtRuntimeTest.java | 2 +- test/com/alibaba/wisp/thread/EngineExecutorTest.java | 2 +- test/com/alibaba/wisp/thread/InterruptTest.java | 2 +- test/com/alibaba/wisp/thread/InterruptedSleepTest.java | 2 +- test/com/alibaba/wisp/thread/IsAliveTest.java | 2 +- test/com/alibaba/wisp/thread/PreemptTest.java | 2 +- test/com/alibaba/wisp/thread/ThrowErrorTest.java | 2 +- test/com/alibaba/wisp/timer/OverflowTest.java | 2 +- test/com/alibaba/wisp/timer/SleepRPCTest.java | 4 ++-- test/com/alibaba/wisp/timer/SleepTest.java | 4 ++-- test/com/alibaba/wisp/timer/TimerTest.java | 4 ++-- test/com/alibaba/wisp2/AdjustCarrierTest.java | 2 +- test/com/alibaba/wisp2/AllThreadAsWispTest.java | 2 +- test/com/alibaba/wisp2/CarrierAsPollerTest.java | 4 ++-- test/com/alibaba/wisp2/CtxClassLoaderInheritanceTest.java | 2 +- test/com/alibaba/wisp2/DispatchTest.java | 2 +- test/com/alibaba/wisp2/EpollWakeupPerfTest.java | 2 +- test/com/alibaba/wisp2/HandOffTest.java | 2 +- test/com/alibaba/wisp2/HandOffWakeUpTest.java | 2 +- test/com/alibaba/wisp2/HandOffWithStealTest.java | 2 +- test/com/alibaba/wisp2/MassiveIOTest.java | 6 +++--- test/com/alibaba/wisp2/MonolithicPollTest.java | 4 ++-- test/com/alibaba/wisp2/NioBlockingAcceptTest.java | 2 +- test/com/alibaba/wisp2/ProfileWithHandOffTest.java | 2 +- test/com/alibaba/wisp2/ProfileWithHandOffTest2.java | 2 +- test/com/alibaba/wisp2/RemoveWispParentTest.java | 2 +- .../com/alibaba/wisp2/ReuseWispTaskAfterThreadJoinTest.java | 2 +- test/com/alibaba/wisp2/ThreadAsWispBlackListTest.java | 2 +- test/com/alibaba/wisp2/ThreadJoinTest.java | 2 +- test/com/alibaba/wisp2/TimedWaitTest.java | 2 +- test/com/alibaba/wisp2/Wisp2GroupTest.java | 2 +- test/com/alibaba/wisp2/Wisp2ShutdownTest.java | 2 +- test/com/alibaba/wisp2/Wisp2TimerRemoveTest.java | 4 ++-- test/com/alibaba/wisp2/Wisp2WaitNotifyTest.java | 2 +- test/com/alibaba/wisp2/Wisp2WithGlobalCacheTest.java | 2 +- test/com/alibaba/wisp2/Wisp2WorkStealTest.java | 2 +- test/com/alibaba/wisp2/WispEngineCurrentTest.java | 2 +- test/com/alibaba/wisp2/WispInitShutdownTest.java | 2 +- test/com/alibaba/wisp2/bug/ConcurrentThreadJoinTest.java | 2 +- test/com/alibaba/wisp2/bug/DisableStealBugTest.java | 2 +- test/com/alibaba/wisp2/bug/EpollWakeupTest.java | 2 +- test/com/alibaba/wisp2/bug/IsInNativeTest.java | 2 +- test/com/alibaba/wisp2/bug/PreemptWispInternalBugTest.java | 1 + test/com/alibaba/wisp2/bug/SchedulerQLBugTest.java | 2 +- .../wisp2/bug/Wisp2ThreadObjLeakInThreadGroupTest.java | 2 +- test/com/alibaba/wisp2/yield/Wisp2YieldTest.java | 2 +- test/com/alibaba/wisp2/yield/YieldEmptyQueueTest.java | 2 +- test/com/alibaba/wisp2/yield/YieldFewNanosTest.java | 2 +- test/com/alibaba/wisp2/yield/YieldTimerTest.java | 4 ++-- 94 files changed, 106 insertions(+), 103 deletions(-) diff --git a/test/com/alibaba/wisp/ConfigurationCompatibilityCheckTest.java b/test/com/alibaba/wisp/ConfigurationCompatibilityCheckTest.java index 4ffe1b391..c621772c5 100644 --- a/test/com/alibaba/wisp/ConfigurationCompatibilityCheckTest.java +++ b/test/com/alibaba/wisp/ConfigurationCompatibilityCheckTest.java @@ -41,6 +41,7 @@ public class ConfigurationCompatibilityCheckTest { private static void incompatibility(String... args) throws Exception { ArrayList list = new ArrayList<>(); + list.add("-XX:+UnlockExperimentalVMOptions"); list.add("-XX:+EnableCoroutine"); list.addAll(Arrays.asList(args)); list.add("-version"); diff --git a/test/com/alibaba/wisp/CoroutineTest.java b/test/com/alibaba/wisp/CoroutineTest.java index 2fa273d14..99c7a3f81 100644 --- a/test/com/alibaba/wisp/CoroutineTest.java +++ b/test/com/alibaba/wisp/CoroutineTest.java @@ -23,7 +23,7 @@ * @test * @summary Test low level coroutine implement * @requires os.family == "linux" - * @run main/othervm -XX:+EnableCoroutine CoroutineTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine CoroutineTest */ import java.dyn.Coroutine; diff --git a/test/com/alibaba/wisp/ExecutionTest.java b/test/com/alibaba/wisp/ExecutionTest.java index 5d0878bd7..721775fe1 100644 --- a/test/com/alibaba/wisp/ExecutionTest.java +++ b/test/com/alibaba/wisp/ExecutionTest.java @@ -23,7 +23,7 @@ * @test * @summary Test WispCarrier's multi-task schedule * @requires os.family == "linux" - * @run main/othervm -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true ExecutionTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true ExecutionTest */ diff --git a/test/com/alibaba/wisp/IoTest.java b/test/com/alibaba/wisp/IoTest.java index 1c982687f..e3bfa3bee 100644 --- a/test/com/alibaba/wisp/IoTest.java +++ b/test/com/alibaba/wisp/IoTest.java @@ -23,7 +23,7 @@ * @test * @summary Test Wisp engine's NIO support * @requires os.family == "linux" - * @run main/othervm -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true IoTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true IoTest */ import sun.misc.SharedSecrets; diff --git a/test/com/alibaba/wisp/LoadClassInnerWispGuard.java b/test/com/alibaba/wisp/LoadClassInnerWispGuard.java index f1a4f6dd0..d0a490c7e 100644 --- a/test/com/alibaba/wisp/LoadClassInnerWispGuard.java +++ b/test/com/alibaba/wisp/LoadClassInnerWispGuard.java @@ -61,6 +61,7 @@ public class LoadClassInnerWispGuard { */ private static void driver() throws Exception { ProcessBuilder pb = jdk.testlibrary.ProcessTools.createJavaProcessBuilder( + "-XX:+UnlockExperimentalVMOptions", "-XX:+UseWisp2", "-Dcom.alibaba.wisp.allThreadAsWisp=false", "-verbose:class", "-cp", System.getProperty("java.class.path"), LoadClassInnerWispGuard.class.getName(), "1"); diff --git a/test/com/alibaba/wisp/NormalExitTest.java b/test/com/alibaba/wisp/NormalExitTest.java index 486c591af..48a4bd348 100644 --- a/test/com/alibaba/wisp/NormalExitTest.java +++ b/test/com/alibaba/wisp/NormalExitTest.java @@ -29,7 +29,7 @@ public class NormalExitTest { public static void main(String[] args) throws Exception { - ProcessBuilder pb = jdk.testlibrary.ProcessTools.createJavaProcessBuilder("-XX:+UseWisp2", "-version"); + ProcessBuilder pb = jdk.testlibrary.ProcessTools.createJavaProcessBuilder("-XX:+UnlockExperimentalVMOptions", "-XX:+UseWisp2", "-version"); jdk.testlibrary.OutputAnalyzer output = new jdk.testlibrary.OutputAnalyzer(pb.start()); output.shouldNotContain("IllegalArgumentException"); } diff --git a/test/com/alibaba/wisp/ParkTest.java b/test/com/alibaba/wisp/ParkTest.java index eaa74296f..a5b34a377 100644 --- a/test/com/alibaba/wisp/ParkTest.java +++ b/test/com/alibaba/wisp/ParkTest.java @@ -24,7 +24,7 @@ * @summary Test Wisp engine park / unpark * @requires os.family == "linux" * @library /lib/testlibrary - * @run main/othervm -XX:+UseWisp2 ParkTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseWisp2 ParkTest */ diff --git a/test/com/alibaba/wisp/TestWispDetailCounter.java b/test/com/alibaba/wisp/TestWispDetailCounter.java index 0e642ed42..7bfdf6110 100644 --- a/test/com/alibaba/wisp/TestWispDetailCounter.java +++ b/test/com/alibaba/wisp/TestWispDetailCounter.java @@ -36,7 +36,7 @@ import static jdk.testlibrary.Asserts.assertTrue; * @summary WispCounterMXBean unit test for Detail profile data * @requires os.family == "linux" * @library /lib/testlibrary - * @run main/othervm/timeout=2000 -XX:+UseWisp2 -Dcom.alibaba.wisp.config=/tmp/wisp.config -Dcom.alibaba.wisp.profile=true -Dcom.alibaba.wisp.enableProfileLog=true -Dcom.alibaba.wisp.logTimeInternalMillis=3000 TestWispDetailCounter + * @run main/othervm/timeout=2000 -XX:+UnlockExperimentalVMOptions -XX:+UseWisp2 -Dcom.alibaba.wisp.config=/tmp/wisp.config -Dcom.alibaba.wisp.profile=true -Dcom.alibaba.wisp.enableProfileLog=true -Dcom.alibaba.wisp.logTimeInternalMillis=3000 TestWispDetailCounter */ public class TestWispDetailCounter { diff --git a/test/com/alibaba/wisp/WispMonitorDataTest.java b/test/com/alibaba/wisp/WispMonitorDataTest.java index 262cf2d87..ceb32de70 100644 --- a/test/com/alibaba/wisp/WispMonitorDataTest.java +++ b/test/com/alibaba/wisp/WispMonitorDataTest.java @@ -42,7 +42,7 @@ import static jdk.testlibrary.Asserts.assertTrue; * @summary WispCounterMXBean unit test for Detail profile data using the API with the specified WispCarrier * @requires os.family == "linux" * @library /lib/testlibrary - * @run main/othervm/timeout=2000 -XX:+UseWisp2 -Dcom.alibaba.wisp.config=/tmp/wisp.config -Dcom.alibaba.wisp.profile=true WispMonitorDataTest + * @run main/othervm/timeout=2000 -XX:+UnlockExperimentalVMOptions -XX:+UseWisp2 -Dcom.alibaba.wisp.config=/tmp/wisp.config -Dcom.alibaba.wisp.profile=true WispMonitorDataTest */ public class WispMonitorDataTest { diff --git a/test/com/alibaba/wisp/boot/UnsafeDependencyBugTest.java b/test/com/alibaba/wisp/boot/UnsafeDependencyBugTest.java index bd62715b5..77e06c913 100644 --- a/test/com/alibaba/wisp/boot/UnsafeDependencyBugTest.java +++ b/test/com/alibaba/wisp/boot/UnsafeDependencyBugTest.java @@ -49,7 +49,7 @@ public class UnsafeDependencyBugTest { } private static void runLauncherWithWisp() throws Exception { - Process p = new ProcessBuilder(System.getProperty("java.home") + "/bin/java", "-XX:+EnableCoroutine") + Process p = new ProcessBuilder(System.getProperty("java.home") + "/bin/java", "-XX:+UnlockExperimentalVMOptions", "-XX:+EnableCoroutine") .redirectErrorStream(true) .redirectOutput(new File("/dev/null")) .start(); diff --git a/test/com/alibaba/wisp/bug/CancelTimerAndSleepTest.java b/test/com/alibaba/wisp/bug/CancelTimerAndSleepTest.java index 854a4fb13..b6f2f35f0 100644 --- a/test/com/alibaba/wisp/bug/CancelTimerAndSleepTest.java +++ b/test/com/alibaba/wisp/bug/CancelTimerAndSleepTest.java @@ -23,7 +23,7 @@ * @test * @summary Test sleep * @requires os.family == "linux" - * @run main/othervm -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true CancelTimerAndSleepTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true CancelTimerAndSleepTest */ import sun.misc.SharedSecrets; diff --git a/test/com/alibaba/wisp/bug/Id2TaskMapLeakTest.java b/test/com/alibaba/wisp/bug/Id2TaskMapLeakTest.java index 7d3aaeb7a..d966f7b82 100644 --- a/test/com/alibaba/wisp/bug/Id2TaskMapLeakTest.java +++ b/test/com/alibaba/wisp/bug/Id2TaskMapLeakTest.java @@ -24,7 +24,7 @@ * @library /lib/testlibrary * @summary Test for thread WispTask leak * @requires os.family == "linux" - * @run main/othervm -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true Id2TaskMapLeakTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true Id2TaskMapLeakTest */ import com.alibaba.wisp.engine.WispEngine; diff --git a/test/com/alibaba/wisp/bug/ReleaseWispSocketAndExitTest.java b/test/com/alibaba/wisp/bug/ReleaseWispSocketAndExitTest.java index 79c5ebd48..2f2bc1969 100644 --- a/test/com/alibaba/wisp/bug/ReleaseWispSocketAndExitTest.java +++ b/test/com/alibaba/wisp/bug/ReleaseWispSocketAndExitTest.java @@ -26,7 +26,7 @@ * 2. task B get the socket S and block on IO. * 3. task A exit and clean S's event, now B waiting forever... * @requires os.family == "linux" - * @run main/othervm -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true ReleaseWispSocketAndExitTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true ReleaseWispSocketAndExitTest */ diff --git a/test/com/alibaba/wisp/bug/ResetTaskCancelTimerBugTest.java b/test/com/alibaba/wisp/bug/ResetTaskCancelTimerBugTest.java index ad048e205..5a2f41572 100644 --- a/test/com/alibaba/wisp/bug/ResetTaskCancelTimerBugTest.java +++ b/test/com/alibaba/wisp/bug/ResetTaskCancelTimerBugTest.java @@ -24,7 +24,7 @@ * @library /lib/testlibrary * @summary test reset task doesn't cancel the current task's timer unexpectedly. * @requires os.family == "linux" - * @run main/othervm -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true ResetTaskCancelTimerBugTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true ResetTaskCancelTimerBugTest */ diff --git a/test/com/alibaba/wisp/bug/SelectorInitCriticalTest.java b/test/com/alibaba/wisp/bug/SelectorInitCriticalTest.java index 3d1cc8a4c..30d6e61f7 100644 --- a/test/com/alibaba/wisp/bug/SelectorInitCriticalTest.java +++ b/test/com/alibaba/wisp/bug/SelectorInitCriticalTest.java @@ -24,7 +24,7 @@ * @library /lib/testlibrary * @summary Test the fix to NPE issue caused by unexpected co-routine yielding on synchronized(lock) in SelectorProvider.provider() during initialization of WispCarrier * @requires os.family == "linux" - * @run main/othervm -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true -XX:+UseWispMonitor SelectorInitCriticalTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true -XX:+UseWispMonitor SelectorInitCriticalTest */ diff --git a/test/com/alibaba/wisp/bug/TestThreadStackTrace.sh b/test/com/alibaba/wisp/bug/TestThreadStackTrace.sh index 21797fb33..05b43b95d 100644 --- a/test/com/alibaba/wisp/bug/TestThreadStackTrace.sh +++ b/test/com/alibaba/wisp/bug/TestThreadStackTrace.sh @@ -131,7 +131,7 @@ then fi #run -${JAVA} -XX:+PrintSafepointStatistics -XX:PrintSafepointStatisticsCount=1 -XX:+UseWisp2 -Dcom.alibaba.wisp.carrierEngines=1 -cp ${TESTCLASSES} ${TEST_CLASS} > output.txt 2>&1 +${JAVA} -XX:+PrintSafepointStatistics -XX:PrintSafepointStatisticsCount=1 -XX:+UnlockExperimentalVMOptions -XX:+UseWisp2 -Dcom.alibaba.wisp.carrierEngines=1 -cp ${TESTCLASSES} ${TEST_CLASS} > output.txt 2>&1 cat output.txt function assert() diff --git a/test/com/alibaba/wisp/bug/ThreadLockTest.java b/test/com/alibaba/wisp/bug/ThreadLockTest.java index 308fe69c1..6ab258385 100644 --- a/test/com/alibaba/wisp/bug/ThreadLockTest.java +++ b/test/com/alibaba/wisp/bug/ThreadLockTest.java @@ -23,7 +23,7 @@ * @test * @summary Test fix of WispCarrier block on Thread.class lock * @requires os.family == "linux" - * @run main/othervm -XX:-UseBiasedLocking -XX:+EnableCoroutine -XX:+UseWispMonitor -XX:SyncKnobs="ReportSettings=1:QMode=1" -Dcom.alibaba.wisp.transparentWispSwitch=true ThreadLockTest + * @run main/othervm -XX:-UseBiasedLocking -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -XX:+UseWispMonitor -XX:SyncKnobs="ReportSettings=1:QMode=1" -Dcom.alibaba.wisp.transparentWispSwitch=true ThreadLockTest */ import com.alibaba.wisp.engine.WispEngine; diff --git a/test/com/alibaba/wisp/bug/ThreadPoolFastShutdownBugTest.java b/test/com/alibaba/wisp/bug/ThreadPoolFastShutdownBugTest.java index 35442a459..72f3eefae 100644 --- a/test/com/alibaba/wisp/bug/ThreadPoolFastShutdownBugTest.java +++ b/test/com/alibaba/wisp/bug/ThreadPoolFastShutdownBugTest.java @@ -23,7 +23,7 @@ * @test * @summary test shutdown a thread pool which contains non-fully-started thread * @requires os.family == "linux" - * @run main/othervm -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true ThreadPoolFastShutdownBugTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true ThreadPoolFastShutdownBugTest */ import java.util.concurrent.ExecutorService; diff --git a/test/com/alibaba/wisp/bug/WispSelectorReadyOpsTest.java b/test/com/alibaba/wisp/bug/WispSelectorReadyOpsTest.java index 4d45a3384..c0c231e9a 100644 --- a/test/com/alibaba/wisp/bug/WispSelectorReadyOpsTest.java +++ b/test/com/alibaba/wisp/bug/WispSelectorReadyOpsTest.java @@ -23,7 +23,7 @@ * @test * @summary ensure nio program call SelectionKey.is{}able() and got correct result. * @requires os.family == "linux" - * @run main/othervm -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true WispSelectorReadyOpsTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true WispSelectorReadyOpsTest */ import java.net.InetSocketAddress; diff --git a/test/com/alibaba/wisp/bug/WispSocketLeakWhenConnectTimeoutTest.java b/test/com/alibaba/wisp/bug/WispSocketLeakWhenConnectTimeoutTest.java index 4a5d6c614..b193e23b4 100644 --- a/test/com/alibaba/wisp/bug/WispSocketLeakWhenConnectTimeoutTest.java +++ b/test/com/alibaba/wisp/bug/WispSocketLeakWhenConnectTimeoutTest.java @@ -24,7 +24,7 @@ * @library /lib/testlibrary * @summary test the fix to fd leakage when socket connect timeout * @requires os.family == "linux" - * @run main/othervm -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true WispSocketLeakWhenConnectTimeoutTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true WispSocketLeakWhenConnectTimeoutTest */ import java.io.IOException; diff --git a/test/com/alibaba/wisp/close/WispDestroyTest.java b/test/com/alibaba/wisp/close/WispDestroyTest.java index 352f819a3..8bdbb266a 100644 --- a/test/com/alibaba/wisp/close/WispDestroyTest.java +++ b/test/com/alibaba/wisp/close/WispDestroyTest.java @@ -23,7 +23,7 @@ * @test * @summary Test WispCarrier's destroy * @requires os.family == "linux" - * @run main/othervm -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true WispDestroyTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true WispDestroyTest */ import com.alibaba.wisp.engine.WispTask; diff --git a/test/com/alibaba/wisp/env/CtxClassLoaderIsolateTest.java b/test/com/alibaba/wisp/env/CtxClassLoaderIsolateTest.java index 683ca5622..581e9a4f9 100644 --- a/test/com/alibaba/wisp/env/CtxClassLoaderIsolateTest.java +++ b/test/com/alibaba/wisp/env/CtxClassLoaderIsolateTest.java @@ -24,7 +24,7 @@ * @library /lib/testlibrary * @summary Verify the context class loader isolation per co-routine * @requires os.family == "linux" - * @run main/othervm -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true CtxClassLoaderIsolateTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true CtxClassLoaderIsolateTest */ diff --git a/test/com/alibaba/wisp/io/BlockingAccept2Test.java b/test/com/alibaba/wisp/io/BlockingAccept2Test.java index 05adaabcb..179066c4f 100644 --- a/test/com/alibaba/wisp/io/BlockingAccept2Test.java +++ b/test/com/alibaba/wisp/io/BlockingAccept2Test.java @@ -24,7 +24,7 @@ * @library /lib/testlibrary * @summary test blocking accept * @requires os.family == "linux" - * @run main/othervm -Dcom.alibaba.wisp.carrierEngines=1 -XX:+UseWisp2 BlockingAccept2Test + * @run main/othervm -Dcom.alibaba.wisp.carrierEngines=1 -XX:+UnlockExperimentalVMOptions -XX:+UseWisp2 BlockingAccept2Test */ import java.net.InetSocketAddress; diff --git a/test/com/alibaba/wisp/io/BlockingAcceptTest.java b/test/com/alibaba/wisp/io/BlockingAcceptTest.java index c6291ff9e..cbbcd467c 100644 --- a/test/com/alibaba/wisp/io/BlockingAcceptTest.java +++ b/test/com/alibaba/wisp/io/BlockingAcceptTest.java @@ -24,8 +24,8 @@ * @library /lib/testlibrary * @summary test blocking accept * @requires os.family == "linux" - * @run main/othervm -XX:ActiveProcessorCount=4 -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true -XX:+UseWispMonitor BlockingAcceptTest - * @run main/othervm -XX:ActiveProcessorCount=4 -XX:+UseWisp2 BlockingAcceptTest + * @run main/othervm -XX:ActiveProcessorCount=4 -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true -XX:+UseWispMonitor BlockingAcceptTest + * @run main/othervm -XX:ActiveProcessorCount=4 -XX:+UnlockExperimentalVMOptions -XX:+UseWisp2 BlockingAcceptTest */ import java.net.InetSocketAddress; diff --git a/test/com/alibaba/wisp/io/CreateFdOnDemandTest.java b/test/com/alibaba/wisp/io/CreateFdOnDemandTest.java index 29f6239a3..21ba7ef5e 100644 --- a/test/com/alibaba/wisp/io/CreateFdOnDemandTest.java +++ b/test/com/alibaba/wisp/io/CreateFdOnDemandTest.java @@ -24,7 +24,7 @@ * @library /lib/testlibrary * @summary Test fix of unconnected Socket fd leak. * @requires os.family == "linux" - * @run main/othervm -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true CreateFdOnDemandTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true CreateFdOnDemandTest */ import java.io.File; diff --git a/test/com/alibaba/wisp/io/DatagramSocketTest.java b/test/com/alibaba/wisp/io/DatagramSocketTest.java index 572ca8a79..8d58480f9 100644 --- a/test/com/alibaba/wisp/io/DatagramSocketTest.java +++ b/test/com/alibaba/wisp/io/DatagramSocketTest.java @@ -24,7 +24,7 @@ * @library /lib/testlibrary * @summary Test WispCarrier's DatagramSocket, InitialDirContext use dup socket to query dns. * @requires os.family == "linux" - * @run main/othervm -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true DatagramSocketTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true DatagramSocketTest */ diff --git a/test/com/alibaba/wisp/io/GlobalPollerTest.java b/test/com/alibaba/wisp/io/GlobalPollerTest.java index 443d7284b..0833ad237 100644 --- a/test/com/alibaba/wisp/io/GlobalPollerTest.java +++ b/test/com/alibaba/wisp/io/GlobalPollerTest.java @@ -24,7 +24,7 @@ * @library /lib/testlibrary * @summary Test for Global Poller * @requires os.family == "linux" - * @run main/othervm -XX:+EnableCoroutine -Dcom.alibaba.transparentAsync=true GlobalPollerTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -Dcom.alibaba.transparentAsync=true GlobalPollerTest */ import com.alibaba.wisp.engine.WispTask; diff --git a/test/com/alibaba/wisp/io/ReuseUdpSocektBufTest.java b/test/com/alibaba/wisp/io/ReuseUdpSocektBufTest.java index 136870fb9..18e2ae4a3 100644 --- a/test/com/alibaba/wisp/io/ReuseUdpSocektBufTest.java +++ b/test/com/alibaba/wisp/io/ReuseUdpSocektBufTest.java @@ -24,7 +24,7 @@ * @library /lib/testlibrary * @summary test reuse WispUdpSocket buffer * @requires os.family == "linux" - * @run main/othervm -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true ReuseUdpSocektBufTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true ReuseUdpSocektBufTest */ import java.net.DatagramPacket; diff --git a/test/com/alibaba/wisp/io/ShareFdTest.java b/test/com/alibaba/wisp/io/ShareFdTest.java index 4afb2d609..80bffc485 100644 --- a/test/com/alibaba/wisp/io/ShareFdTest.java +++ b/test/com/alibaba/wisp/io/ShareFdTest.java @@ -24,7 +24,7 @@ * @library /lib/testlibrary * @summary test support fd use acorss coroutines * @requires os.family == "linux" - * @run main/othervm -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true ShareFdTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true ShareFdTest */ import sun.misc.SharedSecrets; diff --git a/test/com/alibaba/wisp/io/SocketTest.java b/test/com/alibaba/wisp/io/SocketTest.java index 4e4fd1991..ee3f7aff7 100644 --- a/test/com/alibaba/wisp/io/SocketTest.java +++ b/test/com/alibaba/wisp/io/SocketTest.java @@ -24,7 +24,7 @@ * @summary Test WispEngine's Socket * @requires os.family == "linux" * @library /lib/testlibrary - * @run main/othervm -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true SocketTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true SocketTest */ import java.io.IOException; diff --git a/test/com/alibaba/wisp/io/WispSocketCloseTest.java b/test/com/alibaba/wisp/io/WispSocketCloseTest.java index 115857d14..6438437de 100644 --- a/test/com/alibaba/wisp/io/WispSocketCloseTest.java +++ b/test/com/alibaba/wisp/io/WispSocketCloseTest.java @@ -24,7 +24,7 @@ * @library /lib/testlibrary * @summary test close will wake up blocking wispTask * @requires os.family == "linux" - * @run main/othervm -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true WispSocketCloseTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true WispSocketCloseTest */ import java.io.IOException; diff --git a/test/com/alibaba/wisp/lock/AQSTest.java b/test/com/alibaba/wisp/lock/AQSTest.java index 13c25c5b4..3411e5d6b 100644 --- a/test/com/alibaba/wisp/lock/AQSTest.java +++ b/test/com/alibaba/wisp/lock/AQSTest.java @@ -23,7 +23,7 @@ * @test * @summary Test AQS: CountDownLatch is implement by AQS * @requires os.family == "linux" - * @run main/othervm -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true AQSTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true AQSTest */ diff --git a/test/com/alibaba/wisp/lock/ElisionSpinTest.java b/test/com/alibaba/wisp/lock/ElisionSpinTest.java index 335f1b74f..840853ef1 100644 --- a/test/com/alibaba/wisp/lock/ElisionSpinTest.java +++ b/test/com/alibaba/wisp/lock/ElisionSpinTest.java @@ -24,7 +24,7 @@ * @summary Test elision spin * @requires os.family == "linux" * @library /lib/testlibrary - * @run main/othervm -XX:+UseWisp2 -Dcom.alibaba.wisp.carrierEngines=1 ElisionSpinTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseWisp2 -Dcom.alibaba.wisp.carrierEngines=1 ElisionSpinTest */ import com.alibaba.wisp.engine.WispEngine; diff --git a/test/com/alibaba/wisp/lock/LockTest.java b/test/com/alibaba/wisp/lock/LockTest.java index 23f965255..2d2aca96c 100644 --- a/test/com/alibaba/wisp/lock/LockTest.java +++ b/test/com/alibaba/wisp/lock/LockTest.java @@ -23,7 +23,7 @@ * @test * @summary Test ReentrantLock in coroutine environment * @requires os.family == "linux" - * @run main/othervm -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true LockTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true LockTest */ diff --git a/test/com/alibaba/wisp/lock/ParkNanoTest.java b/test/com/alibaba/wisp/lock/ParkNanoTest.java index 9495b8b26..a769391fc 100644 --- a/test/com/alibaba/wisp/lock/ParkNanoTest.java +++ b/test/com/alibaba/wisp/lock/ParkNanoTest.java @@ -23,7 +23,7 @@ * @test * @summary Test park nanos * @requires os.family == "linux" - * @run main/othervm -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true ParkNanoTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true ParkNanoTest */ diff --git a/test/com/alibaba/wisp/lock/UnsafeParkTest.java b/test/com/alibaba/wisp/lock/UnsafeParkTest.java index 527865fa3..1e80b148a 100644 --- a/test/com/alibaba/wisp/lock/UnsafeParkTest.java +++ b/test/com/alibaba/wisp/lock/UnsafeParkTest.java @@ -24,7 +24,7 @@ * @library /lib/testlibrary * @summary Test to verify we can do proper wisp scheduling while calling on Unsafe.park() * @requires os.family == "linux" - * @run main/othervm -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true UnsafeParkTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true UnsafeParkTest */ import com.alibaba.wisp.engine.WispEngine; diff --git a/test/com/alibaba/wisp/monitor/C2SyncMethodTest.java b/test/com/alibaba/wisp/monitor/C2SyncMethodTest.java index 129fe75df..d99dff7ef 100644 --- a/test/com/alibaba/wisp/monitor/C2SyncMethodTest.java +++ b/test/com/alibaba/wisp/monitor/C2SyncMethodTest.java @@ -23,7 +23,7 @@ * @test * @summary test to run a compiled/synchronized method with wisp enabled. * @requires os.family == "linux" - * @run main/othervm -XX:-UseBiasedLocking -XX:+EnableCoroutine -XX:+UseWispMonitor -Dcom.alibaba.wisp.transparentWispSwitch=true C2SyncMethodTest + * @run main/othervm -XX:-UseBiasedLocking -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -XX:+UseWispMonitor -Dcom.alibaba.wisp.transparentWispSwitch=true C2SyncMethodTest */ public class C2SyncMethodTest { public synchronized static void main(String[] args) { diff --git a/test/com/alibaba/wisp/monitor/FinalizerTest.java b/test/com/alibaba/wisp/monitor/FinalizerTest.java index e6fd784f9..5b7cc0399 100644 --- a/test/com/alibaba/wisp/monitor/FinalizerTest.java +++ b/test/com/alibaba/wisp/monitor/FinalizerTest.java @@ -23,7 +23,7 @@ * @test * @summary Test unpark in a finalizer thread. * @requires os.family == "linux" - * @run main/othervm -XX:-UseBiasedLocking -XX:+EnableCoroutine -XX:+UseWispMonitor -Dcom.alibaba.wisp.transparentWispSwitch=true FinalizerTest + * @run main/othervm -XX:-UseBiasedLocking -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -XX:+UseWispMonitor -Dcom.alibaba.wisp.transparentWispSwitch=true FinalizerTest */ public class FinalizerTest { diff --git a/test/com/alibaba/wisp/monitor/JNICriticalTest.java b/test/com/alibaba/wisp/monitor/JNICriticalTest.java index 5bbbde339..1b8ffc66a 100644 --- a/test/com/alibaba/wisp/monitor/JNICriticalTest.java +++ b/test/com/alibaba/wisp/monitor/JNICriticalTest.java @@ -23,7 +23,7 @@ * @test * @summary Test unpark in JNI critical case * @requires os.family == "linux" - * @run main/othervm -XX:-UseBiasedLocking -XX:+EnableCoroutine -XX:+UseWispMonitor -Dcom.alibaba.wisp.transparentWispSwitch=true JNICriticalTest + * @run main/othervm -XX:-UseBiasedLocking -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -XX:+UseWispMonitor -Dcom.alibaba.wisp.transparentWispSwitch=true JNICriticalTest */ diff --git a/test/com/alibaba/wisp/monitor/LazyUnparkBugTest.java b/test/com/alibaba/wisp/monitor/LazyUnparkBugTest.java index 7173946a5..b280db8b1 100644 --- a/test/com/alibaba/wisp/monitor/LazyUnparkBugTest.java +++ b/test/com/alibaba/wisp/monitor/LazyUnparkBugTest.java @@ -24,7 +24,7 @@ * @summary T12212948 * @requires os.family == "linux" * @library /lib/testlibrary - * @run main/othervm -XX:+EnableCoroutine -XX:+UseWispMonitor -Dcom.alibaba.wisp.transparentWispSwitch=true LazyUnparkBugTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -XX:+UseWispMonitor -Dcom.alibaba.wisp.transparentWispSwitch=true LazyUnparkBugTest */ public class LazyUnparkBugTest { diff --git a/test/com/alibaba/wisp/monitor/PassTokenTest.java b/test/com/alibaba/wisp/monitor/PassTokenTest.java index 425762755..d5fb3a91e 100644 --- a/test/com/alibaba/wisp/monitor/PassTokenTest.java +++ b/test/com/alibaba/wisp/monitor/PassTokenTest.java @@ -24,9 +24,9 @@ * @library /lib/testlibrary * @summary Test object lock with coroutine * @requires os.family == "linux" - * @run main/othervm -XX:-UseBiasedLocking -XX:+EnableCoroutine -XX:+UseWispMonitor -Dcom.alibaba.wisp.transparentWispSwitch=true -Dcom.alibaba.wisp.schedule.policy=PULL PassTokenTest - * @run main/othervm -XX:-UseBiasedLocking -XX:+EnableCoroutine -XX:+UseWispMonitor -Dcom.alibaba.wisp.transparentWispSwitch=true -Dcom.alibaba.wisp.schedule.policy=PUSH PassTokenTest - * @run main/othervm -XX:-UseBiasedLocking -XX:+EnableCoroutine -XX:+UseWispMonitor -Dcom.alibaba.wisp.transparentWispSwitch=true -DcheckStealEnable=true PassTokenTest + * @run main/othervm -XX:-UseBiasedLocking -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -XX:+UseWispMonitor -Dcom.alibaba.wisp.transparentWispSwitch=true -Dcom.alibaba.wisp.schedule.policy=PULL PassTokenTest + * @run main/othervm -XX:-UseBiasedLocking -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -XX:+UseWispMonitor -Dcom.alibaba.wisp.transparentWispSwitch=true -Dcom.alibaba.wisp.schedule.policy=PUSH PassTokenTest + * @run main/othervm -XX:-UseBiasedLocking -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -XX:+UseWispMonitor -Dcom.alibaba.wisp.transparentWispSwitch=true -DcheckStealEnable=true PassTokenTest */ diff --git a/test/com/alibaba/wisp/monitor/SynchronizedTest.java b/test/com/alibaba/wisp/monitor/SynchronizedTest.java index a542011ca..6afd8ce63 100644 --- a/test/com/alibaba/wisp/monitor/SynchronizedTest.java +++ b/test/com/alibaba/wisp/monitor/SynchronizedTest.java @@ -23,7 +23,7 @@ * @test * @summary Basic test for java primitive lock(synchronized) * @requires os.family == "linux" - * @run main/othervm -XX:-UseBiasedLocking -XX:+EnableCoroutine -XX:+UseWispMonitor -Dcom.alibaba.wisp.transparentWispSwitch=true SynchronizedTest + * @run main/othervm -XX:-UseBiasedLocking -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -XX:+UseWispMonitor -Dcom.alibaba.wisp.transparentWispSwitch=true SynchronizedTest */ import com.alibaba.wisp.engine.WispEngine; diff --git a/test/com/alibaba/wisp/monitor/WispExitTest.java b/test/com/alibaba/wisp/monitor/WispExitTest.java index 3adfcadc8..872b3d971 100644 --- a/test/com/alibaba/wisp/monitor/WispExitTest.java +++ b/test/com/alibaba/wisp/monitor/WispExitTest.java @@ -23,7 +23,7 @@ * @test * @summary Ensure we can exit vm when -XX:+UseWispMonitor * @requires os.family == "linux" - * @run main/othervm -XX:-UseBiasedLocking -XX:+EnableCoroutine -XX:+UseWispMonitor -Dcom.alibaba.wisp.transparentWispSwitch=true WispExitTest + * @run main/othervm -XX:-UseBiasedLocking -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -XX:+UseWispMonitor -Dcom.alibaba.wisp.transparentWispSwitch=true WispExitTest */ public class WispExitTest { public static void main(String[] args) throws Exception { diff --git a/test/com/alibaba/wisp/thread/DaemonTest.java b/test/com/alibaba/wisp/thread/DaemonTest.java index a326c7684..9971cffc9 100644 --- a/test/com/alibaba/wisp/thread/DaemonTest.java +++ b/test/com/alibaba/wisp/thread/DaemonTest.java @@ -64,7 +64,7 @@ public class DaemonTest { private static void driver(boolean daemon) throws Exception { // we can not use jdk.testlibrary.ProcessTools here, because we need to analyse stdout of a unfinished process - Process process = new ProcessBuilder(System.getProperty("java.home") + "/bin/java", + Process process = new ProcessBuilder(System.getProperty("java.home") + "/bin/java", "-XX:+UnlockExperimentalVMOptions", "-XX:+UseWisp2", "-cp", System.getProperty("java.class.path"), DaemonTest.class.getName(), Boolean.toString(daemon)).start(); Thread.sleep(2000); byte[] buffer = new byte[1024]; diff --git a/test/com/alibaba/wisp/thread/DaemonThreadGroupTest.java b/test/com/alibaba/wisp/thread/DaemonThreadGroupTest.java index cfbe390b6..b48ece306 100644 --- a/test/com/alibaba/wisp/thread/DaemonThreadGroupTest.java +++ b/test/com/alibaba/wisp/thread/DaemonThreadGroupTest.java @@ -24,7 +24,7 @@ * @library /lib/testlibrary * @summary Test Daemon Thread Group implementation * @requires os.family == "linux" - * @run main/othervm -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true -Dcom.alibaba.wisp.useCarrierAsPoller=false DaemonThreadGroupTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true -Dcom.alibaba.wisp.useCarrierAsPoller=false DaemonThreadGroupTest */ diff --git a/test/com/alibaba/wisp/thread/DisableThreadAsWispAtRuntimeTest.java b/test/com/alibaba/wisp/thread/DisableThreadAsWispAtRuntimeTest.java index 91f404794..af5063f19 100644 --- a/test/com/alibaba/wisp/thread/DisableThreadAsWispAtRuntimeTest.java +++ b/test/com/alibaba/wisp/thread/DisableThreadAsWispAtRuntimeTest.java @@ -24,7 +24,7 @@ * @summary this feature is not supported in wisp2, just check compatibility * @requires os.family == "linux" * @library /lib/testlibrary - * @run main/othervm -XX:+EnableCoroutine -XX:+UseWispMonitor -Dcom.alibaba.wisp.transparentWispSwitch=true DisableThreadAsWispAtRuntimeTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -XX:+UseWispMonitor -Dcom.alibaba.wisp.transparentWispSwitch=true DisableThreadAsWispAtRuntimeTest */ import com.alibaba.wisp.engine.WispEngine; diff --git a/test/com/alibaba/wisp/thread/EngineExecutorTest.java b/test/com/alibaba/wisp/thread/EngineExecutorTest.java index fd4442ce9..370edd7d1 100644 --- a/test/com/alibaba/wisp/thread/EngineExecutorTest.java +++ b/test/com/alibaba/wisp/thread/EngineExecutorTest.java @@ -24,7 +24,7 @@ * @library /lib/testlibrary * @summary test submit task to engine. * @requires os.family == "linux" - * @run main/othervm -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true EngineExecutorTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true EngineExecutorTest */ import com.alibaba.wisp.engine.WispEngine; diff --git a/test/com/alibaba/wisp/thread/InterruptTest.java b/test/com/alibaba/wisp/thread/InterruptTest.java index 16ed42b68..790fedad8 100644 --- a/test/com/alibaba/wisp/thread/InterruptTest.java +++ b/test/com/alibaba/wisp/thread/InterruptTest.java @@ -23,7 +23,7 @@ * @test * @summary test thread.interrupt() of wispTask * @requires os.family == "linux" - * @run main/othervm -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true InterruptTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true InterruptTest */ import com.alibaba.wisp.engine.WispEngine; diff --git a/test/com/alibaba/wisp/thread/InterruptedSleepTest.java b/test/com/alibaba/wisp/thread/InterruptedSleepTest.java index 1deb7eb47..4ea30f93f 100644 --- a/test/com/alibaba/wisp/thread/InterruptedSleepTest.java +++ b/test/com/alibaba/wisp/thread/InterruptedSleepTest.java @@ -24,7 +24,7 @@ * @summary test InterruptedException was thrown by sleep() * @requires os.family == "linux" * @library /lib/testlibrary - * @run main/othervm -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true InterruptedSleepTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true InterruptedSleepTest */ import com.alibaba.wisp.engine.WispEngine; diff --git a/test/com/alibaba/wisp/thread/IsAliveTest.java b/test/com/alibaba/wisp/thread/IsAliveTest.java index 827b06b20..008d6cedc 100644 --- a/test/com/alibaba/wisp/thread/IsAliveTest.java +++ b/test/com/alibaba/wisp/thread/IsAliveTest.java @@ -24,7 +24,7 @@ * @summary test thread.isAlive() of wispTask * @requires os.family == "linux" * @library /lib/testlibrary - * @run main/othervm -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true IsAliveTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true IsAliveTest */ import com.alibaba.wisp.engine.WispEngine; diff --git a/test/com/alibaba/wisp/thread/PreemptTest.java b/test/com/alibaba/wisp/thread/PreemptTest.java index 2ece050c3..a05b43b9c 100644 --- a/test/com/alibaba/wisp/thread/PreemptTest.java +++ b/test/com/alibaba/wisp/thread/PreemptTest.java @@ -24,7 +24,7 @@ * @summary test wisp time slice preempt * @requires os.family == "linux" * @library /lib/testlibrary - * @run main/othervm -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true -Dcom.alibaba.wisp.carrierEngines=1 PreemptTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true -Dcom.alibaba.wisp.carrierEngines=1 PreemptTest */ diff --git a/test/com/alibaba/wisp/thread/ThrowErrorTest.java b/test/com/alibaba/wisp/thread/ThrowErrorTest.java index 2402eab26..790a8500a 100644 --- a/test/com/alibaba/wisp/thread/ThrowErrorTest.java +++ b/test/com/alibaba/wisp/thread/ThrowErrorTest.java @@ -24,7 +24,7 @@ * @summary test coroutine throw Error * @requires os.family == "linux" * @library /lib/testlibrary - * @run main/othervm -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true ThrowErrorTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true ThrowErrorTest */ import com.alibaba.wisp.engine.WispEngine; diff --git a/test/com/alibaba/wisp/timer/OverflowTest.java b/test/com/alibaba/wisp/timer/OverflowTest.java index 63e4741e7..a7ef51593 100644 --- a/test/com/alibaba/wisp/timer/OverflowTest.java +++ b/test/com/alibaba/wisp/timer/OverflowTest.java @@ -24,7 +24,7 @@ * @library /lib/testlibrary * @summary Test timer implementation * @requires os.family == "linux" - * @run main/othervm -XX:+EnableCoroutine OverflowTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine OverflowTest */ diff --git a/test/com/alibaba/wisp/timer/SleepRPCTest.java b/test/com/alibaba/wisp/timer/SleepRPCTest.java index d4c38f3bd..dc96d866b 100644 --- a/test/com/alibaba/wisp/timer/SleepRPCTest.java +++ b/test/com/alibaba/wisp/timer/SleepRPCTest.java @@ -24,8 +24,8 @@ * @summary test use sleep in RPC senorina * @requires os.family == "linux" * @library /lib/testlibrary - * @run main/othervm -XX:+EnableCoroutine -XX:+UseWispMonitor -Dcom.alibaba.wisp.transparentWispSwitch=true SleepRPCTest - * @run main/othervm -XX:+EnableCoroutine -XX:+UseWispMonitor -Dcom.alibaba.wisp.transparentWispSwitch=true -Dcom.alibaba.wisp.highPrecisionTimer=true SleepRPCTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -XX:+UseWispMonitor -Dcom.alibaba.wisp.transparentWispSwitch=true SleepRPCTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -XX:+UseWispMonitor -Dcom.alibaba.wisp.transparentWispSwitch=true -Dcom.alibaba.wisp.highPrecisionTimer=true SleepRPCTest */ import com.alibaba.wisp.engine.WispEngine; diff --git a/test/com/alibaba/wisp/timer/SleepTest.java b/test/com/alibaba/wisp/timer/SleepTest.java index 33e15bf2a..de5df6b9e 100644 --- a/test/com/alibaba/wisp/timer/SleepTest.java +++ b/test/com/alibaba/wisp/timer/SleepTest.java @@ -24,8 +24,8 @@ * @summary test sleep * @requires os.family == "linux" * @library /lib/testlibrary - * @run main/othervm -XX:+EnableCoroutine -XX:+UseWispMonitor -Dcom.alibaba.wisp.transparentWispSwitch=true SleepTest - * @run main/othervm -XX:+EnableCoroutine -XX:+UseWispMonitor -Dcom.alibaba.wisp.transparentWispSwitch=true -Dcom.alibaba.wisp.highPrecisionTimer=true SleepTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -XX:+UseWispMonitor -Dcom.alibaba.wisp.transparentWispSwitch=true SleepTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -XX:+UseWispMonitor -Dcom.alibaba.wisp.transparentWispSwitch=true -Dcom.alibaba.wisp.highPrecisionTimer=true SleepTest */ import com.alibaba.wisp.engine.WispEngine; diff --git a/test/com/alibaba/wisp/timer/TimerTest.java b/test/com/alibaba/wisp/timer/TimerTest.java index 42b0de9b5..9d73d77ed 100644 --- a/test/com/alibaba/wisp/timer/TimerTest.java +++ b/test/com/alibaba/wisp/timer/TimerTest.java @@ -23,8 +23,8 @@ * @test * @summary Test timer implement * @requires os.family == "linux" - * @run main/othervm -XX:+EnableCoroutine TimerTest - * @run main/othervm -XX:+EnableCoroutine -Dcom.alibaba.wisp.highPrecisionTimer=true TimerTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine TimerTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -Dcom.alibaba.wisp.highPrecisionTimer=true TimerTest */ diff --git a/test/com/alibaba/wisp2/AdjustCarrierTest.java b/test/com/alibaba/wisp2/AdjustCarrierTest.java index 241d89424..fcbe52049 100644 --- a/test/com/alibaba/wisp2/AdjustCarrierTest.java +++ b/test/com/alibaba/wisp2/AdjustCarrierTest.java @@ -24,7 +24,7 @@ * @library /lib/testlibrary * @summary test for adjusting carrier number at runtime * @requires os.family == "linux" - * @run main/othervm -XX:+UseWisp2 -Dcom.alibaba.wisp.growCarrierTickUs=200000 AdjustCarrierTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseWisp2 -Dcom.alibaba.wisp.growCarrierTickUs=200000 AdjustCarrierTest */ diff --git a/test/com/alibaba/wisp2/AllThreadAsWispTest.java b/test/com/alibaba/wisp2/AllThreadAsWispTest.java index 45d526d44..e4fce120d 100644 --- a/test/com/alibaba/wisp2/AllThreadAsWispTest.java +++ b/test/com/alibaba/wisp2/AllThreadAsWispTest.java @@ -24,7 +24,7 @@ * @library /lib/testlibrary * @summary convert all thread to wisp * @requires os.family == "linux" - * @run main/othervm -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true -Dcom.alibaba.wisp.version=2 -XX:+UseWispMonitor -Dcom.alibaba.wisp.enableThreadAsWisp=true -Dcom.alibaba.wisp.allThreadAsWisp=true AllThreadAsWispTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true -Dcom.alibaba.wisp.version=2 -XX:+UseWispMonitor -Dcom.alibaba.wisp.enableThreadAsWisp=true -Dcom.alibaba.wisp.allThreadAsWisp=true AllThreadAsWispTest */ import sun.misc.SharedSecrets; diff --git a/test/com/alibaba/wisp2/CarrierAsPollerTest.java b/test/com/alibaba/wisp2/CarrierAsPollerTest.java index be9922c56..df90650d7 100644 --- a/test/com/alibaba/wisp2/CarrierAsPollerTest.java +++ b/test/com/alibaba/wisp2/CarrierAsPollerTest.java @@ -24,8 +24,8 @@ * @library /lib/testlibrary * @summary verify carrier is doing epoll instead of poller when useCarrierAsPoller is enabled * @requires os.family == "linux" - * @run main/othervm -XX:+UseWisp2 -Dcom.alibaba.wisp.useCarrierAsPoller=true CarrierAsPollerTest - * @run main/othervm -XX:+UseWisp2 -Dcom.alibaba.wisp.useCarrierAsPoller=false CarrierAsPollerTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseWisp2 -Dcom.alibaba.wisp.useCarrierAsPoller=true CarrierAsPollerTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseWisp2 -Dcom.alibaba.wisp.useCarrierAsPoller=false CarrierAsPollerTest */ diff --git a/test/com/alibaba/wisp2/CtxClassLoaderInheritanceTest.java b/test/com/alibaba/wisp2/CtxClassLoaderInheritanceTest.java index c3830d96c..5096f159b 100644 --- a/test/com/alibaba/wisp2/CtxClassLoaderInheritanceTest.java +++ b/test/com/alibaba/wisp2/CtxClassLoaderInheritanceTest.java @@ -24,7 +24,7 @@ * @library /lib/testlibrary * @summary test context ClassLoader inherit. * @requires os.family == "linux" - * @run main/othervm -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true -Dcom.alibaba.wisp.version=2 -XX:+UseWispMonitor -Dcom.alibaba.wisp.enableThreadAsWisp=true -Dcom.alibaba.wisp.allThreadAsWisp=true CtxClassLoaderInheritanceTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true -Dcom.alibaba.wisp.version=2 -XX:+UseWispMonitor -Dcom.alibaba.wisp.enableThreadAsWisp=true -Dcom.alibaba.wisp.allThreadAsWisp=true CtxClassLoaderInheritanceTest */ import java.util.concurrent.CountDownLatch; diff --git a/test/com/alibaba/wisp2/DispatchTest.java b/test/com/alibaba/wisp2/DispatchTest.java index 97a8d5787..addc98fd2 100644 --- a/test/com/alibaba/wisp2/DispatchTest.java +++ b/test/com/alibaba/wisp2/DispatchTest.java @@ -23,7 +23,7 @@ * @test * @summary basic wisp2 * @requires os.family == "linux" - * @run main/othervm -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true -Dcom.alibaba.wisp.version=2 -XX:+UseWispMonitor DispatchTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true -Dcom.alibaba.wisp.version=2 -XX:+UseWispMonitor DispatchTest */ diff --git a/test/com/alibaba/wisp2/EpollWakeupPerfTest.java b/test/com/alibaba/wisp2/EpollWakeupPerfTest.java index 1cfc88aa9..dd43eaf5f 100644 --- a/test/com/alibaba/wisp2/EpollWakeupPerfTest.java +++ b/test/com/alibaba/wisp2/EpollWakeupPerfTest.java @@ -23,7 +23,7 @@ * @test * @summary test selector.wakeup() performance * @requires os.family == "linux" - * @run main/othervm -XX:+UseWisp2 EpollWakeupPerfTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseWisp2 EpollWakeupPerfTest */ import java.nio.channels.Selector; diff --git a/test/com/alibaba/wisp2/HandOffTest.java b/test/com/alibaba/wisp2/HandOffTest.java index bddca16d8..eb4c40866 100644 --- a/test/com/alibaba/wisp2/HandOffTest.java +++ b/test/com/alibaba/wisp2/HandOffTest.java @@ -24,7 +24,7 @@ * @library /lib/testlibrary * @summary test long running or blocking syscall task could be retaken * @requires os.family == "linux" - * @run main/othervm -Dcom.alibaba.wisp.carrierEngines=1 -XX:-UseBiasedLocking -XX:+EnableCoroutine -XX:+UseWispMonitor -Dcom.alibaba.wisp.transparentWispSwitch=true -Dcom.alibaba.wisp.version=2 -Dcom.alibaba.wisp.enableHandOff=true -Dcom.alibaba.wisp.handoffPolicy=ADAPTIVE -Dcom.alibaba.wisp.sysmonTickUs=100000 HandOffTest + * @run main/othervm -Dcom.alibaba.wisp.carrierEngines=1 -XX:-UseBiasedLocking -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -XX:+UseWispMonitor -Dcom.alibaba.wisp.transparentWispSwitch=true -Dcom.alibaba.wisp.version=2 -Dcom.alibaba.wisp.enableHandOff=true -Dcom.alibaba.wisp.handoffPolicy=ADAPTIVE -Dcom.alibaba.wisp.sysmonTickUs=100000 HandOffTest */ import com.alibaba.wisp.engine.WispEngine; diff --git a/test/com/alibaba/wisp2/HandOffWakeUpTest.java b/test/com/alibaba/wisp2/HandOffWakeUpTest.java index 5ef4b0749..af82ab66e 100644 --- a/test/com/alibaba/wisp2/HandOffWakeUpTest.java +++ b/test/com/alibaba/wisp2/HandOffWakeUpTest.java @@ -24,7 +24,7 @@ * @library /lib/testlibrary * @summary test long running or blocking syscall task could be retaken * @requires os.family == "linux" - * @run main/othervm -Dcom.alibaba.wisp.carrierEngines=1 -XX:-UseBiasedLocking -XX:+EnableCoroutine -XX:+UseWispMonitor -Dcom.alibaba.wisp.transparentWispSwitch=true -Dcom.alibaba.wisp.version=2 -Dcom.alibaba.wisp.enableHandOff=true -Dcom.alibaba.wisp.sysmonTickUs=100000 HandOffWakeUpTest + * @run main/othervm -Dcom.alibaba.wisp.carrierEngines=1 -XX:-UseBiasedLocking -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -XX:+UseWispMonitor -Dcom.alibaba.wisp.transparentWispSwitch=true -Dcom.alibaba.wisp.version=2 -Dcom.alibaba.wisp.enableHandOff=true -Dcom.alibaba.wisp.sysmonTickUs=100000 HandOffWakeUpTest */ import com.alibaba.wisp.engine.WispEngine; diff --git a/test/com/alibaba/wisp2/HandOffWithStealTest.java b/test/com/alibaba/wisp2/HandOffWithStealTest.java index 608ea6091..d59736c0c 100644 --- a/test/com/alibaba/wisp2/HandOffWithStealTest.java +++ b/test/com/alibaba/wisp2/HandOffWithStealTest.java @@ -24,7 +24,7 @@ * @library /lib/testlibrary * @summary test long running or blocking syscall task could be retaken * @requires os.family == "linux" - * @run main/othervm -Dcom.alibaba.wisp.carrierEngines=1 -XX:+UseWisp2 -Dcom.alibaba.wisp.handoffPolicy=ADAPTIVE HandOffWithStealTest + * @run main/othervm -Dcom.alibaba.wisp.carrierEngines=1 -XX:+UnlockExperimentalVMOptions -XX:+UseWisp2 -Dcom.alibaba.wisp.handoffPolicy=ADAPTIVE HandOffWithStealTest */ import com.alibaba.wisp.engine.WispEngine; diff --git a/test/com/alibaba/wisp2/MassiveIOTest.java b/test/com/alibaba/wisp2/MassiveIOTest.java index bace9e45a..d6ad73ec0 100644 --- a/test/com/alibaba/wisp2/MassiveIOTest.java +++ b/test/com/alibaba/wisp2/MassiveIOTest.java @@ -24,9 +24,9 @@ * @library /lib/testlibrary * @summary test massive IO * @requires os.family == "linux" - * @run main/othervm -XX:+UseWisp2 MassiveIOTest - * @run main/othervm -XX:+UseWisp2 -Dcom.alibaba.pollerShardingSize=0 MassiveIOTest - * @run main/othervm -XX:+UseWisp2 -Dcom.alibaba.pollerShardingSize=1000 MassiveIOTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseWisp2 MassiveIOTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseWisp2 -Dcom.alibaba.pollerShardingSize=0 MassiveIOTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseWisp2 -Dcom.alibaba.pollerShardingSize=1000 MassiveIOTest */ import java.io.IOException; import java.io.InputStream; diff --git a/test/com/alibaba/wisp2/MonolithicPollTest.java b/test/com/alibaba/wisp2/MonolithicPollTest.java index 2db277caa..3f4bd72a9 100644 --- a/test/com/alibaba/wisp2/MonolithicPollTest.java +++ b/test/com/alibaba/wisp2/MonolithicPollTest.java @@ -24,8 +24,8 @@ * @library /lib/testlibrary * @summary verify epollArray is set for Selector.select() * @requires os.family == "linux" - * @run main/othervm -XX:+UseWisp2 -Dcom.alibaba.wisp.monolithicPoll=true MonolithicPollTest - * @run main/othervm -XX:+UseWisp2 -Dcom.alibaba.wisp.monolithicPoll=false MonolithicPollTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseWisp2 -Dcom.alibaba.wisp.monolithicPoll=true MonolithicPollTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseWisp2 -Dcom.alibaba.wisp.monolithicPoll=false MonolithicPollTest */ import com.alibaba.wisp.engine.WispTask; diff --git a/test/com/alibaba/wisp2/NioBlockingAcceptTest.java b/test/com/alibaba/wisp2/NioBlockingAcceptTest.java index 7da918dc3..fb2e5610f 100644 --- a/test/com/alibaba/wisp2/NioBlockingAcceptTest.java +++ b/test/com/alibaba/wisp2/NioBlockingAcceptTest.java @@ -24,7 +24,7 @@ * @library /lib/testlibrary * @summary test nio blocking accept * @requires os.family == "linux" - * @run main/othervm -Dcom.alibaba.wisp.carrierEngines=1 -XX:ActiveProcessorCount=1 -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true -Dcom.alibaba.wisp.version=2 -XX:+UseWispMonitor -Dcom.alibaba.wisp.enableThreadAsWisp=true -Dcom.alibaba.wisp.allThreadAsWisp=true NioBlockingAcceptTest + * @run main/othervm -Dcom.alibaba.wisp.carrierEngines=1 -XX:ActiveProcessorCount=1 -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true -Dcom.alibaba.wisp.version=2 -XX:+UseWispMonitor -Dcom.alibaba.wisp.enableThreadAsWisp=true -Dcom.alibaba.wisp.allThreadAsWisp=true NioBlockingAcceptTest */ import com.alibaba.wisp.engine.WispEngine; diff --git a/test/com/alibaba/wisp2/ProfileWithHandOffTest.java b/test/com/alibaba/wisp2/ProfileWithHandOffTest.java index 1842f1134..bae0c9d25 100644 --- a/test/com/alibaba/wisp2/ProfileWithHandOffTest.java +++ b/test/com/alibaba/wisp2/ProfileWithHandOffTest.java @@ -24,7 +24,7 @@ * @library /lib/testlibrary * @summary test after long running or blocking syscall task could be retaken, the new carrier thread can be profiled. * @requires os.family == "linux" - * @run main/othervm -Dcom.alibaba.wisp.carrierEngines=1 -XX:-UseBiasedLocking -XX:+EnableCoroutine -XX:+UseWispMonitor -Dcom.alibaba.wisp.transparentWispSwitch=true -Dcom.alibaba.wisp.version=2 -Dcom.alibaba.wisp.enableHandOff=true -Dcom.alibaba.wisp.handoffPolicy=ADAPTIVE -Dcom.alibaba.wisp.enablePerfLog=true -Dcom.alibaba.wisp.logTimeInternalMillis=1000 ProfileWithHandOffTest + * @run main/othervm -Dcom.alibaba.wisp.carrierEngines=1 -XX:-UseBiasedLocking -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -XX:+UseWispMonitor -Dcom.alibaba.wisp.transparentWispSwitch=true -Dcom.alibaba.wisp.version=2 -Dcom.alibaba.wisp.enableHandOff=true -Dcom.alibaba.wisp.handoffPolicy=ADAPTIVE -Dcom.alibaba.wisp.enablePerfLog=true -Dcom.alibaba.wisp.logTimeInternalMillis=1000 ProfileWithHandOffTest */ import com.alibaba.wisp.engine.WispEngine; diff --git a/test/com/alibaba/wisp2/ProfileWithHandOffTest2.java b/test/com/alibaba/wisp2/ProfileWithHandOffTest2.java index d9de11cad..91493167d 100644 --- a/test/com/alibaba/wisp2/ProfileWithHandOffTest2.java +++ b/test/com/alibaba/wisp2/ProfileWithHandOffTest2.java @@ -24,7 +24,7 @@ * @library /lib/testlibrary * @summary test after long running or blocking syscall task could be retaken, the new carrier thread can be profiled. * @requires os.family == "linux" - * @run main/othervm -Dcom.alibaba.wisp.carrierEngines=1 -XX:-UseBiasedLocking -XX:+EnableCoroutine -XX:+UseWispMonitor -Dcom.alibaba.wisp.transparentWispSwitch=true -Dcom.alibaba.wisp.version=2 -Dcom.alibaba.wisp.enableHandOff=true -Dcom.alibaba.wisp.handoffPolicy=ADAPTIVE -Dcom.alibaba.wisp.sysmonTickUs=100000 -Dcom.alibaba.wisp.enablePerfLog=true -Dcom.alibaba.wisp.logTimeInternalMillis=1000 ProfileWithHandOffTest2 + * @run main/othervm -Dcom.alibaba.wisp.carrierEngines=1 -XX:-UseBiasedLocking -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -XX:+UseWispMonitor -Dcom.alibaba.wisp.transparentWispSwitch=true -Dcom.alibaba.wisp.version=2 -Dcom.alibaba.wisp.enableHandOff=true -Dcom.alibaba.wisp.handoffPolicy=ADAPTIVE -Dcom.alibaba.wisp.sysmonTickUs=100000 -Dcom.alibaba.wisp.enablePerfLog=true -Dcom.alibaba.wisp.logTimeInternalMillis=1000 ProfileWithHandOffTest2 */ import com.alibaba.wisp.engine.WispEngine; diff --git a/test/com/alibaba/wisp2/RemoveWispParentTest.java b/test/com/alibaba/wisp2/RemoveWispParentTest.java index 4da20a606..c6f0309e6 100644 --- a/test/com/alibaba/wisp2/RemoveWispParentTest.java +++ b/test/com/alibaba/wisp2/RemoveWispParentTest.java @@ -24,7 +24,7 @@ * @summary Test a WispTask will not block when it created a new one and didn't yield to its parent. * @requires os.family == "linux" * @library /lib/testlibrary - * @run main/othervm -XX:+UseWisp2 RemoveWispParentTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseWisp2 RemoveWispParentTest */ import com.alibaba.wisp.engine.WispEngine; diff --git a/test/com/alibaba/wisp2/ReuseWispTaskAfterThreadJoinTest.java b/test/com/alibaba/wisp2/ReuseWispTaskAfterThreadJoinTest.java index 3f519094f..f77aeb995 100644 --- a/test/com/alibaba/wisp2/ReuseWispTaskAfterThreadJoinTest.java +++ b/test/com/alibaba/wisp2/ReuseWispTaskAfterThreadJoinTest.java @@ -24,7 +24,7 @@ * @library /lib/testlibrary * @summary test wisp task reusing after thread.join() * @requires os.family == "linux" - * @run main/othervm -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true -Dcom.alibaba.wisp.version=2 -XX:+UseWispMonitor -Dcom.alibaba.wisp.enableThreadAsWisp=true -Dcom.alibaba.wisp.allThreadAsWisp=true ReuseWispTaskAfterThreadJoinTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true -Dcom.alibaba.wisp.version=2 -XX:+UseWispMonitor -Dcom.alibaba.wisp.enableThreadAsWisp=true -Dcom.alibaba.wisp.allThreadAsWisp=true ReuseWispTaskAfterThreadJoinTest */ import com.alibaba.wisp.engine.WispEngine; diff --git a/test/com/alibaba/wisp2/ThreadAsWispBlackListTest.java b/test/com/alibaba/wisp2/ThreadAsWispBlackListTest.java index d6104f994..e4baf6847 100644 --- a/test/com/alibaba/wisp2/ThreadAsWispBlackListTest.java +++ b/test/com/alibaba/wisp2/ThreadAsWispBlackListTest.java @@ -24,7 +24,7 @@ * @library /lib/testlibrary * @summary test all thread as wisp black list * @requires os.family == "linux" - * @run main/othervm -XX:+UseWisp2 ThreadAsWispBlackListTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseWisp2 ThreadAsWispBlackListTest */ import sun.misc.SharedSecrets; diff --git a/test/com/alibaba/wisp2/ThreadJoinTest.java b/test/com/alibaba/wisp2/ThreadJoinTest.java index 005a73a74..daca585ae 100644 --- a/test/com/alibaba/wisp2/ThreadJoinTest.java +++ b/test/com/alibaba/wisp2/ThreadJoinTest.java @@ -24,7 +24,7 @@ * @library /lib/testlibrary * @summary test thread.join() * @requires os.family == "linux" - * @run main/othervm -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true -Dcom.alibaba.wisp.version=2 -XX:+UseWispMonitor -Dcom.alibaba.wisp.enableThreadAsWisp=true -Dcom.alibaba.wisp.allThreadAsWisp=true ThreadJoinTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true -Dcom.alibaba.wisp.version=2 -XX:+UseWispMonitor -Dcom.alibaba.wisp.enableThreadAsWisp=true -Dcom.alibaba.wisp.allThreadAsWisp=true ThreadJoinTest */ import com.alibaba.wisp.engine.WispEngine; diff --git a/test/com/alibaba/wisp2/TimedWaitTest.java b/test/com/alibaba/wisp2/TimedWaitTest.java index eed65ea0b..97402382d 100644 --- a/test/com/alibaba/wisp2/TimedWaitTest.java +++ b/test/com/alibaba/wisp2/TimedWaitTest.java @@ -23,7 +23,7 @@ * @test * @summary test timed Jvm park * @requires os.family == "linux" - * @run main/othervm -XX:-UseBiasedLocking -XX:+EnableCoroutine -XX:+UseWispMonitor -Dcom.alibaba.wisp.transparentWispSwitch=true -Dcom.alibaba.wisp.version=2 TimedWaitTest + * @run main/othervm -XX:-UseBiasedLocking -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -XX:+UseWispMonitor -Dcom.alibaba.wisp.transparentWispSwitch=true -Dcom.alibaba.wisp.version=2 TimedWaitTest */ import com.alibaba.wisp.engine.WispEngine; diff --git a/test/com/alibaba/wisp2/Wisp2GroupTest.java b/test/com/alibaba/wisp2/Wisp2GroupTest.java index 472541aa1..7f9407ade 100644 --- a/test/com/alibaba/wisp2/Wisp2GroupTest.java +++ b/test/com/alibaba/wisp2/Wisp2GroupTest.java @@ -24,7 +24,7 @@ * @summary Test WispCounter removing during the shutdown of Wisp2Group * @requires os.family == "linux" * @library /lib/testlibrary - * @run main/othervm -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true -Dcom.alibaba.wisp.version=2 -XX:+UseWispMonitor -Dcom.alibaba.wisp.enableHandOff=false Wisp2GroupTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true -Dcom.alibaba.wisp.version=2 -XX:+UseWispMonitor -Dcom.alibaba.wisp.enableHandOff=false Wisp2GroupTest */ import com.alibaba.management.WispCounterMXBean; diff --git a/test/com/alibaba/wisp2/Wisp2ShutdownTest.java b/test/com/alibaba/wisp2/Wisp2ShutdownTest.java index f711c3bd8..a9189b29f 100644 --- a/test/com/alibaba/wisp2/Wisp2ShutdownTest.java +++ b/test/com/alibaba/wisp2/Wisp2ShutdownTest.java @@ -24,7 +24,7 @@ * @summary Wisp2ShutdownTest * @requires os.family == "linux" * @library /lib/testlibrary - * @run main/othervm -XX:+EnableCoroutine -XX:+UseWispMonitor -Dcom.alibaba.wisp.transparentWispSwitch=true -Dcom.alibaba.wisp.version=2 Wisp2ShutdownTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -XX:+UseWispMonitor -Dcom.alibaba.wisp.transparentWispSwitch=true -Dcom.alibaba.wisp.version=2 Wisp2ShutdownTest */ import com.alibaba.wisp.engine.WispEngine; diff --git a/test/com/alibaba/wisp2/Wisp2TimerRemoveTest.java b/test/com/alibaba/wisp2/Wisp2TimerRemoveTest.java index fe18454dc..345117065 100644 --- a/test/com/alibaba/wisp2/Wisp2TimerRemoveTest.java +++ b/test/com/alibaba/wisp2/Wisp2TimerRemoveTest.java @@ -24,8 +24,8 @@ * @library /lib/testlibrary * @summary verify canceled timers are removed ASAP * @requires os.family == "linux" - * @run main/othervm -XX:+UseWisp2 Wisp2TimerRemoveTest - * @run main/othervm -XX:+UseWisp2 -Dcom.alibaba.wisp.highPrecisionTimer=true Wisp2TimerRemoveTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseWisp2 Wisp2TimerRemoveTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseWisp2 -Dcom.alibaba.wisp.highPrecisionTimer=true Wisp2TimerRemoveTest */ import com.alibaba.wisp.engine.WispEngine; diff --git a/test/com/alibaba/wisp2/Wisp2WaitNotifyTest.java b/test/com/alibaba/wisp2/Wisp2WaitNotifyTest.java index c10608083..e0e7090c6 100644 --- a/test/com/alibaba/wisp2/Wisp2WaitNotifyTest.java +++ b/test/com/alibaba/wisp2/Wisp2WaitNotifyTest.java @@ -24,7 +24,7 @@ * @library /lib/testlibrary * @summary Test Object.wait/notify with coroutine in wisp2 * @requires os.family == "linux" - * @run main/othervm -XX:-UseBiasedLocking -XX:+EnableCoroutine -XX:+UseWispMonitor -Dcom.alibaba.wisp.transparentWispSwitch=true -Dcom.alibaba.wisp.version=2 Wisp2WaitNotifyTest + * @run main/othervm -XX:-UseBiasedLocking -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -XX:+UseWispMonitor -Dcom.alibaba.wisp.transparentWispSwitch=true -Dcom.alibaba.wisp.version=2 Wisp2WaitNotifyTest */ import com.alibaba.wisp.engine.WispEngine; diff --git a/test/com/alibaba/wisp2/Wisp2WithGlobalCacheTest.java b/test/com/alibaba/wisp2/Wisp2WithGlobalCacheTest.java index 8d0f99ecf..683ccf6f6 100644 --- a/test/com/alibaba/wisp2/Wisp2WithGlobalCacheTest.java +++ b/test/com/alibaba/wisp2/Wisp2WithGlobalCacheTest.java @@ -24,7 +24,7 @@ * @library /lib/testlibrary * @summary test the task exit flow for ThreadAsWisp task * @requires os.family == "linux" - * @run main/othervm -XX:ActiveProcessorCount=2 -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true -Dcom.alibaba.wisp.version=2 -XX:+UseWispMonitor -Dcom.alibaba.wisp.enableThreadAsWisp=true -Dcom.alibaba.wisp.allThreadAsWisp=true -Dcom.alibaba.wisp.engineTaskCache=2 Wisp2WithGlobalCacheTest + * @run main/othervm -XX:ActiveProcessorCount=2 -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true -Dcom.alibaba.wisp.version=2 -XX:+UseWispMonitor -Dcom.alibaba.wisp.enableThreadAsWisp=true -Dcom.alibaba.wisp.allThreadAsWisp=true -Dcom.alibaba.wisp.engineTaskCache=2 Wisp2WithGlobalCacheTest */ import sun.misc.SharedSecrets; diff --git a/test/com/alibaba/wisp2/Wisp2WorkStealTest.java b/test/com/alibaba/wisp2/Wisp2WorkStealTest.java index c68019e4e..586c04405 100644 --- a/test/com/alibaba/wisp2/Wisp2WorkStealTest.java +++ b/test/com/alibaba/wisp2/Wisp2WorkStealTest.java @@ -24,7 +24,7 @@ * @library /lib/testlibrary * @summary verification of work stealing really happened * @requires os.family == "linux" - * @run main/othervm -XX:+UseWisp2 -Dcom.alibaba.wisp.schedule.stealRetry=100 -Dcom.alibaba.wisp.schedule.helpStealRetry=100 Wisp2WorkStealTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseWisp2 -Dcom.alibaba.wisp.schedule.stealRetry=100 -Dcom.alibaba.wisp.schedule.helpStealRetry=100 Wisp2WorkStealTest */ import com.alibaba.wisp.engine.WispEngine; diff --git a/test/com/alibaba/wisp2/WispEngineCurrentTest.java b/test/com/alibaba/wisp2/WispEngineCurrentTest.java index ec512c8f3..bff3ce409 100644 --- a/test/com/alibaba/wisp2/WispEngineCurrentTest.java +++ b/test/com/alibaba/wisp2/WispEngineCurrentTest.java @@ -24,7 +24,7 @@ * @summary Test WispEngine semantic change after refactor * @requires os.family == "linux" * @library /lib/testlibrary - * @run main/othervm -XX:+UseWisp2 WispEngineCurrentTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseWisp2 WispEngineCurrentTest */ import com.alibaba.wisp.engine.WispEngine; diff --git a/test/com/alibaba/wisp2/WispInitShutdownTest.java b/test/com/alibaba/wisp2/WispInitShutdownTest.java index f37c2798e..cb44548da 100644 --- a/test/com/alibaba/wisp2/WispInitShutdownTest.java +++ b/test/com/alibaba/wisp2/WispInitShutdownTest.java @@ -24,7 +24,7 @@ * @summary WispInitShutdownTest * @requires os.family == "linux" * @library /lib/testlibrary - * @run main/othervm -XX:+EnableCoroutine -XX:+UseWispMonitor -Dcom.alibaba.wisp.transparentWispSwitch=true -Dcom.alibaba.wisp.version=2 WispInitShutdownTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -XX:+UseWispMonitor -Dcom.alibaba.wisp.transparentWispSwitch=true -Dcom.alibaba.wisp.version=2 WispInitShutdownTest */ import com.alibaba.wisp.engine.WispEngine; diff --git a/test/com/alibaba/wisp2/bug/ConcurrentThreadJoinTest.java b/test/com/alibaba/wisp2/bug/ConcurrentThreadJoinTest.java index e9b4cbd26..aa142454f 100644 --- a/test/com/alibaba/wisp2/bug/ConcurrentThreadJoinTest.java +++ b/test/com/alibaba/wisp2/bug/ConcurrentThreadJoinTest.java @@ -24,7 +24,7 @@ * @library /lib/testlibrary * @summary ensure thread.isAlive() is false after thread.join() * @requires os.family == "linux" - * @run main/othervm -XX:+UseWisp2 ConcurrentThreadJoinTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseWisp2 ConcurrentThreadJoinTest */ import static jdk.testlibrary.Asserts.assertFalse; diff --git a/test/com/alibaba/wisp2/bug/DisableStealBugTest.java b/test/com/alibaba/wisp2/bug/DisableStealBugTest.java index 8e9fc6383..d2c9069c1 100644 --- a/test/com/alibaba/wisp2/bug/DisableStealBugTest.java +++ b/test/com/alibaba/wisp2/bug/DisableStealBugTest.java @@ -24,7 +24,7 @@ * @library /lib/testlibrary * @summary test bug of update stealEnable fail * @requires os.family == "linux" - * @run main/othervm -XX:+UseWisp2 DisableStealBugTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseWisp2 DisableStealBugTest */ import com.alibaba.wisp.engine.WispEngine; diff --git a/test/com/alibaba/wisp2/bug/EpollWakeupTest.java b/test/com/alibaba/wisp2/bug/EpollWakeupTest.java index 353b25011..269f5c03d 100644 --- a/test/com/alibaba/wisp2/bug/EpollWakeupTest.java +++ b/test/com/alibaba/wisp2/bug/EpollWakeupTest.java @@ -24,7 +24,7 @@ * @library /lib/testlibrary * @summary test selector.wakeup() dispatched * @requires os.family == "linux" - * @run main/othervm -XX:+UseWisp2 -verbose:class EpollWakeupTest 3000 + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseWisp2 -verbose:class EpollWakeupTest 3000 */ import java.nio.channels.Selector; diff --git a/test/com/alibaba/wisp2/bug/IsInNativeTest.java b/test/com/alibaba/wisp2/bug/IsInNativeTest.java index c17b97db2..8c1080f37 100644 --- a/test/com/alibaba/wisp2/bug/IsInNativeTest.java +++ b/test/com/alibaba/wisp2/bug/IsInNativeTest.java @@ -24,7 +24,7 @@ * @library /lib/testlibrary * @summary test Thread.isInNative() is correct * @requires os.family == "linux" - * @run main/othervm -XX:+EnableCoroutine IsInNativeTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine IsInNativeTest */ import sun.misc.SharedSecrets; diff --git a/test/com/alibaba/wisp2/bug/PreemptWispInternalBugTest.java b/test/com/alibaba/wisp2/bug/PreemptWispInternalBugTest.java index d64015d34..d6c4d03b5 100644 --- a/test/com/alibaba/wisp2/bug/PreemptWispInternalBugTest.java +++ b/test/com/alibaba/wisp2/bug/PreemptWispInternalBugTest.java @@ -41,6 +41,7 @@ public class PreemptWispInternalBugTest { if (args.length == 0) { for (int i = 0; i < tasks.length; i++) { ProcessBuilder pb = jdk.testlibrary.ProcessTools.createJavaProcessBuilder( + "-XX:+UnlockExperimentalVMOptions", "-XX:+UseWisp2", "-XX:+UnlockDiagnosticVMOptions", "-XX:+VerboseWisp", "-XX:-Inline", "-Xcomp", "-Dcom.alibaba.wisp.sysmonTickUs=100000", PreemptWispInternalBugTest.class.getName(), tasks[i]); diff --git a/test/com/alibaba/wisp2/bug/SchedulerQLBugTest.java b/test/com/alibaba/wisp2/bug/SchedulerQLBugTest.java index e6519aede..772c53929 100644 --- a/test/com/alibaba/wisp2/bug/SchedulerQLBugTest.java +++ b/test/com/alibaba/wisp2/bug/SchedulerQLBugTest.java @@ -24,7 +24,7 @@ * @library /lib/testlibrary * @summary verify queue length not growth infinity * @requires os.family == "linux" - * @run main/othervm -XX:+UseWisp2 DisableStealBugTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseWisp2 DisableStealBugTest */ import com.alibaba.wisp.engine.WispEngine; diff --git a/test/com/alibaba/wisp2/bug/Wisp2ThreadObjLeakInThreadGroupTest.java b/test/com/alibaba/wisp2/bug/Wisp2ThreadObjLeakInThreadGroupTest.java index f4bd0c051..266aa1564 100644 --- a/test/com/alibaba/wisp2/bug/Wisp2ThreadObjLeakInThreadGroupTest.java +++ b/test/com/alibaba/wisp2/bug/Wisp2ThreadObjLeakInThreadGroupTest.java @@ -24,7 +24,7 @@ * @library /lib/testlibrary * @summary test bug fix of thread object leak in thread group * @requires os.family == "linux" - * @run main/othervm -XX:+UseWisp2 Wisp2ThreadObjLeakInThreadGroupTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseWisp2 Wisp2ThreadObjLeakInThreadGroupTest */ import java.util.concurrent.CountDownLatch; diff --git a/test/com/alibaba/wisp2/yield/Wisp2YieldTest.java b/test/com/alibaba/wisp2/yield/Wisp2YieldTest.java index a314cf2d0..9882f2552 100644 --- a/test/com/alibaba/wisp2/yield/Wisp2YieldTest.java +++ b/test/com/alibaba/wisp2/yield/Wisp2YieldTest.java @@ -24,7 +24,7 @@ * @library /lib/testlibrary * @summary Test yield in wisp2 * @requires os.family == "linux" - * @run main/othervm -XX:-UseBiasedLocking -XX:+EnableCoroutine -XX:+UseWispMonitor -Dcom.alibaba.wisp.transparentWispSwitch=true -Dcom.alibaba.wisp.version=2 -Dcom.alibaba.wisp.workerEngines=1 Wisp2YieldTest + * @run main/othervm -XX:-UseBiasedLocking -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -XX:+UseWispMonitor -Dcom.alibaba.wisp.transparentWispSwitch=true -Dcom.alibaba.wisp.version=2 -Dcom.alibaba.wisp.workerEngines=1 Wisp2YieldTest */ import com.alibaba.wisp.engine.WispEngine; diff --git a/test/com/alibaba/wisp2/yield/YieldEmptyQueueTest.java b/test/com/alibaba/wisp2/yield/YieldEmptyQueueTest.java index 6d1b0b2d1..812d36710 100644 --- a/test/com/alibaba/wisp2/yield/YieldEmptyQueueTest.java +++ b/test/com/alibaba/wisp2/yield/YieldEmptyQueueTest.java @@ -24,7 +24,7 @@ * @library /lib/testlibrary * @summary Verify yield not really happened when queue is empty * @requires os.family == "linux" - * @run main/othervm -XX:+UseWisp2 YieldEmptyQueueTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseWisp2 YieldEmptyQueueTest */ import com.alibaba.wisp.engine.WispEngine; diff --git a/test/com/alibaba/wisp2/yield/YieldFewNanosTest.java b/test/com/alibaba/wisp2/yield/YieldFewNanosTest.java index ca5ef3384..3ccb8cf29 100644 --- a/test/com/alibaba/wisp2/yield/YieldFewNanosTest.java +++ b/test/com/alibaba/wisp2/yield/YieldFewNanosTest.java @@ -24,7 +24,7 @@ * @library /lib/testlibrary * @summary Verify park not happened for a very small interval * @requires os.family == "linux" - * @run main/othervm -XX:+UseWisp2 YieldFewNanosTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseWisp2 YieldFewNanosTest */ import com.alibaba.wisp.engine.WispEngine; diff --git a/test/com/alibaba/wisp2/yield/YieldTimerTest.java b/test/com/alibaba/wisp2/yield/YieldTimerTest.java index 94daac662..80824d2e6 100644 --- a/test/com/alibaba/wisp2/yield/YieldTimerTest.java +++ b/test/com/alibaba/wisp2/yield/YieldTimerTest.java @@ -24,8 +24,8 @@ * @library /lib/testlibrary * @summary Verify timer could be processed when we're yielding * @requires os.family == "linux" - * @run main/othervm -XX:+UseWisp2 -Dcom.alibaba.wisp.carrierEngines=1 YieldTimerTest - * @run main/othervm -XX:+UseWisp2 -Dcom.alibaba.wisp.carrierEngines=1 -Dcom.alibaba.wisp.highPrecisionTimer=true YieldTimerTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseWisp2 -Dcom.alibaba.wisp.carrierEngines=1 YieldTimerTest + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseWisp2 -Dcom.alibaba.wisp.carrierEngines=1 -Dcom.alibaba.wisp.highPrecisionTimer=true YieldTimerTest */ -- GitLab