diff --git a/test/com/alibaba/wisp/ConfigurationCompatibilityCheckTest.java b/test/com/alibaba/wisp/ConfigurationCompatibilityCheckTest.java index 4ffe1b391c755919a1bb7e39e71f8ab08d1fe926..c621772c5f89c61b91faf73b6fa2d127defdffb5 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 2fa273d144407367c3a9b7fece4dcf63bf0cee51..99c7a3f815d6efb1e750e6c602145d600482bcba 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 5d0878bd7364a5b51d4b9702e063988ba634db0d..721775fe19447bb2f1c25f3d8f9e822d8e4f89a8 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 1c982687f811aa66a8bf2eb1b4f64aa77764bac7..e3bfa3bee82d3cd31212cd216ab0983d5d63227c 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 f1a4f6dd05bd1df900ef39dec1062f270aa1426b..d0a490c7ee9442329858bc5326c1de9431f287ed 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 486c591af7d2cb6f010117532d026f19f266f140..48a4bd34847a0fe7a29fa2defcbc13120b46ef0a 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 eaa74296fe1c09603bcb9eeb6d1b479660b1936b..a5b34a3776dc36e6ea1db7086ac98a12d8fa681f 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 0e642ed42544505998cad9a34f7f81b42f025c23..7bfdf61108c710fb77aa8c7ef93080b74fd4093e 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 262cf2d87d887784e35eb8cfa061c098688506c7..ceb32de70f3e7025e407ef449c2ab579a3f5f336 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 bd62715b5b9ee8d0423e10c7a6e9eb9720424ede..77e06c91305eaa91f2680672347b648e4f29e348 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 854a4fb1322d1208218ae6965151d6c10ec06ebd..b6f2f35f027f71d035d1644bef20558ba0b965ae 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 7d3aaeb7acb92ad8507bf7ab9d3d109564770863..d966f7b82b84750808e5eaa45fffd50755012a37 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 79c5ebd4808b24de89ecbd7b182b2b2af22c95e6..2f2bc19697e8df82ce55d5f8cdbb445744fb1e25 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 ad048e205a801b8b576ac3b09840b89d76815419..5a2f41572dbc198f9641bf5019470697805d0adf 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 3d1cc8a4c9bf5f3b35fea4678ffe03e241b7043d..30d6e61f72cb621b3447556b0a9eee21476e6af5 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 21797fb33da791cc8ceac8596f33dac02df72e67..05b43b95def2e9457059c8c83efe42a1598e20db 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 308fe69c162724b99030239739dfe2ffc6b482da..6ab2583854d9680392ae09f8a54988eb71ced11d 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 35442a45977cce5c4cbf4af083f12dd06b20fee5..72f3eefae7e7d926e8a400a0256c21cf661f8d7b 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 4d45a33845fd3b72b7d61836a86ccf2b6273e7ac..c0c231e9a3022a35f841d95de4a6c94e1e9805c8 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 4a5d6c61499a7f9b35fbd40ceb4aef62af96a319..b193e23b488126b6b961364e559173bd402f4022 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 352f819a3422643bd4448135a6c499bd8db37807..8bdbb266a465ddfe98f2f8e0c4d2765eeb12be3a 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 683ca5622c61d5ee588e9c28725c00a5d49bf5c5..581e9a4f9d57372678b08dc2041ca9792e7b9a8a 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 05adaabcb37ea01728fc45f7f1436d1cc0d2d8d2..179066c4fc95d9d0a2a695e3fc4055abf19230bd 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 c6291ff9efb33054c9a93932a57b5deecd18a58c..cbbcd467c917f6ada116a53b9ed78528d6f60fdc 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 29f6239a35af18b8a3b7e67c50ff142224d5e0a8..21ba7ef5ef73465acfee08ce6ead9eaf6cd198e7 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 572ca8a79d84bcc207ee571e2c0a349fc54f8771..8d58480f9246c8906acac21cdabfd0956959daf9 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 443d7284b7745d60d32fbd6adf807e008e73fc98..0833ad2375bc2525a767c1834449cd61a2c740f2 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 136870fb96afe787f18d38d5bf9a8de53e987e45..18e2ae4a36d730f57a0419c2512760cf92a3ae72 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 4afb2d6091f2d0f14ea1205c24f0bae740918b1f..80bffc4851392baab9a93012edc6ffa627dcecc1 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 4e4fd1991f9e0be3e5c01a62e6404ef759f7e68d..ee3f7aff79bc576efa40e9eae2cb8253617792f8 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 115857d14f91af8c2eb0819cda18fd81129ef8a2..6438437de7898e89de7f006ec1fcc5f73e88a849 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 13c25c5b4f906ca7828fe50974f10941efcb17b6..3411e5d6b3178a7fb29922c99a1649f171c7f750 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 335f1b74fe7629d25d4f9524695a6aeccd4702c9..840853ef100c79d51f0d12803c5b9fd05e260afb 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 23f9652558808c60339773ed7138691cdf637eff..2d2aca96c259a054182941cc007e6d6eec565540 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 9495b8b260afa3afabad2f5cfa393ee09d53621d..a769391fc1512f645d435e7e0da09c23e6547529 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 527865fa33362c9f5fad024006960d954c5a20fe..1e80b148ab36e35d690bf812dfe4511ea02c07bc 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 129fe75df5cde017704770e218ec3e24f4f8bc55..d99dff7efd536b196a166925fb3c4e8c6eb03bc0 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 e6fd784f9a6d2df34f0eb9746fe334aee1679579..5b7cc03999df80029f6099331f1ca00dc4408810 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 5bbbde339d818a5d7eadf6991f313e215e94ea67..1b8ffc66a235dbc5079a9429818433d6db5fabce 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 7173946a5a4eb4095aff6b4382d6d897c9bd165a..b280db8b1adf7bfe279eb628ef597d225db89dc7 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 4257627557916b121a11a054f4d66b531309d286..d5fb3a91e76b1a5b639af336844c4ab0e06bf19c 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 a542011cac1d54b7518b758bf58c08c1c72b0bcb..6afd8ce63d76f71ceac6d47eaf052c6656a90993 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 3adfcadc84cdc9d90335ef3c646f18b9403c57bb..872b3d9711318773c60f8e92ae1eed2bb021ebd3 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 a326c7684d1fd74894aa117be77939b191a04729..9971cffc964057f10f596723a6d04e0a092345e7 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 cfbe390b6731c4742d6a4e4e9dac9ab044599027..b48ece306d848967156611504c74aab02d66fb09 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 91f40479465364b41f6cd4b8d3336952ff921e4d..af5063f195ff79ca3ef807914d2e661f5a42be24 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 fd4442ce96e68ed534197821402f18ee1a2a330d..370edd7d184eda6fabb1a09acf006be4adfbb9c6 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 16ed42b6891b06a495a929dfc62fe04d6f0eaa52..790fedad865b629354d4beeb6a7dcfa4c4598163 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 1deb7eb47a9fb3649323b023413b66ce86e92e7d..4ea30f93f1fd5fde5b9430bb2a4dcffd4970f738 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 827b06b2078fff0f2c5328524cc43e8fa9ebe635..008d6cedccef82bc7cce1b38c02b6310c13256f9 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 2ece050c355183188b843b3ee54cfbfc03cd950a..a05b43b9c0b52a4909ba60fef3dbdcba42608491 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 2402eab260e2e4fe185d4af8a8e72e8503deb75a..790a8500a8f4da9d07283a0256a2badd549b22fb 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 63e4741e7ef3bf94275dbf18ea78b11c0139ec41..a7ef515930a5e82b4b485fe9bd0ede0217616868 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 d4c38f3bdc22834d3840ed1d4f14ce6ec4b43a3c..dc96d866b1c91325fd4d0380e31492dbf7c84db2 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 33e15bf2a8ae6ca7b050b2aabdf995c2e65cfd13..de5df6b9ec5098af1623408c812c2f6f4c000006 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 42b0de9b5ed96f1bca6fdfe0ccd6894c83b40b70..9d73d77ed5b3fec6e53b960987c8995c98462d58 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 241d89424dde03bfaad7767ab0f1251777c7391e..fcbe520497211e0459f350f23ab1cef81aeebb4c 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 45d526d44a8da13404c65cbef99130c029e0c55d..e4fce120d1855d542787c6f5c462438b4d0958aa 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 be9922c563da3ed7fe35aeabebd5b02329abed6e..df90650d7a5fedea7e059d879b08c126ad066032 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 c3830d96c087962f7a95eb8b0fdf49e2aa8c54c6..5096f159bdf20ae1938d6905abf8909d0217aee3 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 97a8d5787e0670111e1de1692e59246725d7b701..addc98fd2776e0a46c3ee55deedc821b509e26aa 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 1cfc88aa99e337f346f3f904388795b38356db74..dd43eaf5f02ea68a87cd424135ffd6ea5998c27e 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 bddca16d88e0a16d684cafec4529e5bef8ea12a7..eb4c40866f9cef35d884347b2fe67fea171be219 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 5ef4b074944cda968eeda53ab54dacd92469fe43..af82ab66e4403f3e0d12315852bf503e45208000 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 608ea6091b32a99b320291d2084f7536bedb3a40..d59736c0c7cc842c0817ec6f66640715e80c32c9 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 bace9e45afd504e746c319327f4644aae814d0e2..d6ad73ec0053619c6d823cbc0844031ebde4e5d7 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 2db277caaba86d2447dd3c4547ef309c75ab4a34..3f4bd72a95f8a378a8de468a25d688ec18a99262 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 7da918dc30aca61c2c61eee9d7cfc5870a10a9af..fb2e5610fb24063cca8483975c97ff3d26928a75 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 1842f113476676749a053db6c83b74c03a929846..bae0c9d2545aa357a17c20a44b179db8a16ed256 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 d9de11cadb4b2090bbbc189aad401ba0ae422226..91493167da67599ea3f7da71c7e9fb8143853f20 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 4da20a60633cd57fc21d06fc4b8e876b357874cd..c6f0309e69682864b81a741a487b517fdc98f37f 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 3f519094fdec860a621574d9365e0b92cb11963b..f77aeb99520713196bd4fa45fc7728079bb61e0d 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 d6104f99492c406c86f452b5300f0db8575fca2d..e4baf68474e355ca251c9d7a7ed34230032554e6 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 005a73a74a89c786cd4b0d1fadf04493a1dd7fac..daca585ae269fcb6ecb6c437657551ec9088bbe9 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 eed65ea0b9848021193070b5208ac61c3f520172..97402382daff1e320528d640c822f64d70da99c4 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 472541aa19ef56b3931d61fba8e5e8e8c64ef1a8..7f9407ade62e14ba32bde7d296685943fe61003a 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 f711c3bd8d6994ac14de78f0f1d98d97b1b0169b..a9189b29f8046f281cdbf6a36078ca76460e13c9 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 fe18454dc0e32ee0915be3ab8f29b950a1d5c686..345117065e6707ba02c97c23c7b91e11d020b1d8 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 c10608083df5ece8e84369077024818f61569639..e0e7090c6328ef7795181659f11fa8a2d1191830 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 8d0f99ecfefe933657489c0081809bc5df14961c..683ccf6f63d903f42260cbbed48ddc264f9242cf 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 c68019e4eafa7c1c81f32c729d029d4de3ce6e5b..586c0440553e8b5d05bb110140a1c4ce85d8313a 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 ec512c8f3a5343ae56c652ae3eba9757b13bb4f5..bff3ce409bf88b4440d0c2a3e9d69f1e20b1f95e 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 f37c2798ec4305ede4db724c31c8f45b56930fc0..cb44548dac0b310da75cfcdc596e35ac30059aae 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 e9b4cbd26e05e7b3755293f489d598d0fc4bb852..aa142454f2cc768507c9b200f4fd136622c3c2b3 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 8e9fc638313ddb84bb125b04e78b3c8fdf768b3f..d2c9069c1a3d0f0997c266e1f0d4ebe6cbc878f5 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 353b25011da79bfe0c790aaed5412afee73b7f74..269f5c03ddde446f546690f2b9f9a2b79df30db8 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 c17b97db2806a5a5d098e762a51271565e74ff0c..8c1080f37396d8098106f2fa6171d45148575ad4 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 d64015d348fa833423fb590338e2f56932bcfbdd..d6c4d03b5270328418407900a655d5a3a13a2b48 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 e6519aedee0baa53cadbd33e6853051cbfae08d7..772c53929405898dadf82dd1ee3de7e142ae9e72 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 f4bd0c05161f6c6326fb0ac1c03bf1859d7d5ee2..266aa15646bf959d7340709b35665422ed289088 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 a314cf2d0ab00f749c0347b58c1a39efd77ae969..9882f2552db54f8b21bb4ce76042c5cce20d75a1 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 6d1b0b2d11c0ef5c6a017d6895074c3e1ac1fbe3..812d36710f63bb5c9ac6b350ea82fd1d61bec39a 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 ca5ef3384d0900068571bc23cc998cdb842069e1..3ccb8cf2951c9d0cba2f0b191bb454dbd7ee340c 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 94daac662debd2bb615aa390747d1b1728e4faaa..80824d2e6fd5a56ca9f4a80b53e83e914aa45777 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 */