ck_epoch: No need for the fence on synchronize for TSO.

We still require a CAS on fast path, which acts as serializing.
ck_pring 0.2.9
Samy Al Bahra 12 years ago
parent c45098b21b
commit 5fad753d6e

@ -294,7 +294,7 @@ ck_epoch_barrier(struct ck_epoch *global, struct ck_epoch_record *record)
* Guarantee any mutations previous to the barrier will be made visible * Guarantee any mutations previous to the barrier will be made visible
* with respect to epoch snapshots we will read. * with respect to epoch snapshots we will read.
*/ */
ck_pr_fence_strict_memory(); ck_pr_fence_memory();
for (i = 0, cr = NULL; i < CK_EPOCH_GRACE - 1; cr = NULL, i++) { for (i = 0, cr = NULL; i < CK_EPOCH_GRACE - 1; cr = NULL, i++) {
/* /*

Loading…
Cancel
Save