Skip to content
Permalink
Browse files

This test sometimes failed due to never hitting the breakpoint in Con…

…tinuation.run(). This is because if every vthread is mounted on a carrier thread, you may never see another call to Continuation.run(). Allow at most 2 carrier threads for the 3 vthreads.
  • Loading branch information
plummercj committed Feb 24, 2020
1 parent 9e981cd commit 3bbda7a3d8c48b2738d243c5b99cb33d70836ce8
@@ -27,8 +27,8 @@
* @compile DoContinueSingleStepTest.java
* @run main/othervm/native -XX:+UseContinuationLazyCopy -agentlib:DoContinueSingleStepTest -Djdk.defaultScheduler.parallelism=1 DoContinueSingleStepTest 150
* @run main/othervm/native -XX:+UseContinuationLazyCopy -agentlib:DoContinueSingleStepTest -Djdk.defaultScheduler.parallelism=1 DoContinueSingleStepTest 500
* @run main/othervm/native -XX:+UseContinuationLazyCopy -agentlib:DoContinueSingleStepTest DoContinueSingleStepTest 150
* @run main/othervm/native -XX:+UseContinuationLazyCopy -agentlib:DoContinueSingleStepTest DoContinueSingleStepTest 500
* @run main/othervm/native -XX:+UseContinuationLazyCopy -agentlib:DoContinueSingleStepTest -Djdk.defaultScheduler.parallelism=2 DoContinueSingleStepTest 150
* @run main/othervm/native -XX:+UseContinuationLazyCopy -agentlib:DoContinueSingleStepTest -Djdk.defaultScheduler.parallelism=2 DoContinueSingleStepTest 500
*/

import java.util.concurrent.*;

0 comments on commit 3bbda7a

Please sign in to comment.