From 44643bd5f3b17269b28d56fc63207e1227c0d0cd Mon Sep 17 00:00:00 2001 From: Samy Al Bahra Date: Sun, 27 Feb 2011 18:15:46 -0500 Subject: [PATCH] regressions: Use volatile load in aggregation. Pointed out by David Joseph. --- regressions/ck_barrier/benchmark/throughput.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/regressions/ck_barrier/benchmark/throughput.c b/regressions/ck_barrier/benchmark/throughput.c index dbb1934..3d4ffc6 100644 --- a/regressions/ck_barrier/benchmark/throughput.c +++ b/regressions/ck_barrier/benchmark/throughput.c @@ -123,7 +123,7 @@ main(int argc, char *argv[]) count = 0; ck_pr_store_int(&done, 1); for (i = 0; i < nthr; ++i) - count += counters[i].value; + count += ck_pr_load_64(&counters[i].value); printf("%d %16" PRIu64 "\n", nthr, count); return (0);