From c06fd5739fe2f72786b8fe83f98d28e6e2d6a19c Mon Sep 17 00:00:00 2001 From: Samy Al Bahra Date: Wed, 30 Dec 2015 13:02:42 -0500 Subject: [PATCH] ck_epoch: Switch to full barrier semantics. May as well capture synchronize -> non-temporal use-case. --- src/ck_epoch.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ck_epoch.c b/src/ck_epoch.c index 7e7df2d..cb59668 100644 --- a/src/ck_epoch.c +++ b/src/ck_epoch.c @@ -475,7 +475,12 @@ reload: } } - ck_pr_fence_release(); + /* + * A majority of use-cases will not require full barrier semantics. + * However, if non-temporal instructions are used, full barrier + * semantics are necessary. + */ + ck_pr_fence_memory(); record->epoch = delta; return; }