Skip to content

Commit 8aa69b5

Browse files
authored
Add missing barriers in litmus test runner (#25)
* add missing barrier in litmus test runner --------- Signed-off-by: Evgeniy Moiseenko <evg.moiseenko94@gmail.com>
1 parent c1f3610 commit 8aa69b5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/commonMain/kotlin/org/jetbrains/litmuskt/ThreadlikeRunner.kt

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ abstract class ThreadlikeRunner : LitmusRunner() {
1313
// performance optimizations:
1414
// 1) each thread takes a portion of states and calculates stats for it
1515
// 2) each thread then resets these states
16+
barrier.await()
1617
rangeResult = calcStats(states.view(resultCalcRange), test.outcomeSpec, test.outcomeFinalizer)
1718
val resetFunction = test.resetFunction
1819
for (i in resultCalcRange) states[i].resetFunction()

0 commit comments

Comments
 (0)