From 83bc7f9f549c6a46f7572467be19d1187216860a Mon Sep 17 00:00:00 2001 From: Samy Al Bahra Date: Sat, 11 May 2013 15:47:55 -0400 Subject: [PATCH] ck_epoch: Migrate to ck_pr_fence_X_Y. --- include/ck_epoch.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/ck_epoch.h b/include/ck_epoch.h index 4624bdf..c300a11 100644 --- a/include/ck_epoch.h +++ b/include/ck_epoch.h @@ -97,12 +97,11 @@ ck_epoch_begin(ck_epoch_t *epoch, ck_epoch_record_t *record) /* * It is possible for loads to be re-ordered before the store * is committed into the caller's epoch and active fields. - * Execute a full barrier to serialize stores with respect to - * loads + * For this reason, store to load serialization is necessary. */ ck_pr_store_uint(&record->epoch, g_epoch); ck_pr_store_uint(&record->active, 1); - ck_pr_fence_strict_memory(); + ck_pr_fence_store_load(); return; }