Skip to content

Commit

Permalink
Add missing barriers in litmus test runner (#25)
Browse files Browse the repository at this point in the history
* add missing barrier in litmus test runner

---------

Signed-off-by: Evgeniy Moiseenko <[email protected]>
  • Loading branch information
eupp authored Jan 20, 2025
1 parent c1f3610 commit 8aa69b5
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ abstract class ThreadlikeRunner : LitmusRunner() {
// performance optimizations:
// 1) each thread takes a portion of states and calculates stats for it
// 2) each thread then resets these states
barrier.await()
rangeResult = calcStats(states.view(resultCalcRange), test.outcomeSpec, test.outcomeFinalizer)
val resetFunction = test.resetFunction
for (i in resultCalcRange) states[i].resetFunction()
Expand Down

0 comments on commit 8aa69b5

Please sign in to comment.