aboutsummaryrefslogtreecommitdiffstats
path: root/executor/executor.cc
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2015-12-23 13:50:40 +0100
committerDmitry Vyukov <dvyukov@google.com>2015-12-23 13:50:40 +0100
commit2fa51b4807c7a250b49d086f8343546587c95f8a (patch)
tree04a90691091ee5fb8a2cef1e0e1ad169e1370d60 /executor/executor.cc
parentc896644ab8e21af0067cac5b4e92105ace9656ea (diff)
executor: fix collide mode
Don't wait for every other call.
Diffstat (limited to 'executor/executor.cc')
-rw-r--r--executor/executor.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/executor/executor.cc b/executor/executor.cc
index 4d04c4fb9..9cdeb7ab8 100644
--- a/executor/executor.cc
+++ b/executor/executor.cc
@@ -339,7 +339,7 @@ retry:
args[i] = 0;
thread_t* th = schedule_call(n, call_index++, call_num, num_args, args, input_pos);
- if (collide && (n % 2)) {
+ if (collide && (call_index % 2) == 0) {
// Don't wait for every other call.
// We already have results from the previous execution.
}