From f22bddddd56a4299479a27b923c0c503fffeee93 Mon Sep 17 00:00:00 2001 From: Samy Al Bahra Date: Sun, 20 Mar 2011 20:57:29 -0400 Subject: [PATCH] ck_epoch: Place epoch on a separate cache line. --- include/ck_epoch.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/ck_epoch.h b/include/ck_epoch.h index 2b44865..eccf1a7 100644 --- a/include/ck_epoch.h +++ b/include/ck_epoch.h @@ -59,9 +59,10 @@ struct ck_epoch_record { typedef struct ck_epoch_record ck_epoch_record_t; struct ck_epoch { + unsigned int epoch; + char pad[CK_MD_CACHELINE - sizeof(unsigned int)]; ck_stack_t records; unsigned int threshold; - unsigned int epoch; unsigned int n_free; ck_epoch_destructor_t destroy; };