regressions: Use volatile load in aggregation.

Pointed out by David Joseph.
ck_pring
Samy Al Bahra 14 years ago
parent d98d3d6ca5
commit 44643bd5f3

@ -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);

Loading…
Cancel
Save