changeset 90:755271d4752e

Regression: iterations should reset control.isStopped.
author shade
date Thu, 13 Mar 2014 18:43:36 +0400
parents 42ee2ebed153
children 7387387cff9a
files jcstress-core/src/main/java/org/openjdk/jcstress/infra/runners/Actor1_Runner.java jcstress-core/src/main/java/org/openjdk/jcstress/infra/runners/Actor2_Arbiter1_Runner.java jcstress-core/src/main/java/org/openjdk/jcstress/infra/runners/Actor2_Runner.java jcstress-core/src/main/java/org/openjdk/jcstress/infra/runners/Actor3_Runner.java jcstress-core/src/main/java/org/openjdk/jcstress/infra/runners/Actor4_Runner.java
diffstat 5 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/jcstress-core/src/main/java/org/openjdk/jcstress/infra/runners/Actor1_Runner.java	Thu Mar 13 16:12:47 2014 +0400
+++ b/jcstress-core/src/main/java/org/openjdk/jcstress/infra/runners/Actor1_Runner.java	Thu Mar 13 18:43:36 2014 +0400
@@ -95,6 +95,8 @@
 
         Collection<Future<?>> tasks = new ArrayList<Future<?>>();
 
+        control.isStopped = false;
+
         tasks.add(pool.submit(
                 new ActorBase<Actor1_Test<S, R>, S, R>(1, test, version, epoch, counter, control, poison) {
                     @Override
--- a/jcstress-core/src/main/java/org/openjdk/jcstress/infra/runners/Actor2_Arbiter1_Runner.java	Thu Mar 13 16:12:47 2014 +0400
+++ b/jcstress-core/src/main/java/org/openjdk/jcstress/infra/runners/Actor2_Arbiter1_Runner.java	Thu Mar 13 18:43:36 2014 +0400
@@ -96,6 +96,8 @@
 
         Collection<Future<?>> tasks = new ArrayList<Future<?>>();
 
+        control.isStopped = false;
+
         tasks.add(pool.submit(
                 new ActorBase<Actor2_Arbiter1_Test<S, R>, S, R>(1, test, version, epoch, counter, control, poison) {
                     @Override
--- a/jcstress-core/src/main/java/org/openjdk/jcstress/infra/runners/Actor2_Runner.java	Thu Mar 13 16:12:47 2014 +0400
+++ b/jcstress-core/src/main/java/org/openjdk/jcstress/infra/runners/Actor2_Runner.java	Thu Mar 13 18:43:36 2014 +0400
@@ -97,6 +97,8 @@
 
         Collection<Future<?>> tasks = new ArrayList<Future<?>>();
 
+        control.isStopped = false;
+
         tasks.add(pool.submit(
                 new ActorBase<Actor2_Test<S, R>, S, R>(1, test, version, epoch, counter, control, poison) {
                     @Override
--- a/jcstress-core/src/main/java/org/openjdk/jcstress/infra/runners/Actor3_Runner.java	Thu Mar 13 16:12:47 2014 +0400
+++ b/jcstress-core/src/main/java/org/openjdk/jcstress/infra/runners/Actor3_Runner.java	Thu Mar 13 18:43:36 2014 +0400
@@ -99,6 +99,8 @@
 
         Collection<Future<?>> tasks = new ArrayList<Future<?>>();
 
+        control.isStopped = false;
+
         tasks.add(pool.submit(
                 new ActorBase<Actor3_Test<S, R>, S, R>(1, test, version, epoch, counter, control, poison) {
                     @Override
--- a/jcstress-core/src/main/java/org/openjdk/jcstress/infra/runners/Actor4_Runner.java	Thu Mar 13 16:12:47 2014 +0400
+++ b/jcstress-core/src/main/java/org/openjdk/jcstress/infra/runners/Actor4_Runner.java	Thu Mar 13 18:43:36 2014 +0400
@@ -101,6 +101,8 @@
 
         Collection<Future<?>> tasks = new ArrayList<Future<?>>();
 
+        control.isStopped = false;
+
         tasks.add(pool.submit(
                 new ActorBase<Actor4_Test<S, R>, S, R>(1, test, version, epoch, counter, control, poison) {
                     @Override