From 0ce7c1efef0db65c7bba99465f08db8ad2bcc424 Mon Sep 17 00:00:00 2001 From: Samy Al Bahra Date: Sun, 9 Apr 2017 16:25:42 -0400 Subject: [PATCH] ck_epoch: remove overzealous padding. Pack shared linkage together in epoch record. Remove unnecessary padding in epoch instance. --- 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 574ab51..9e166e5 100644 --- a/include/ck_epoch.h +++ b/include/ck_epoch.h @@ -83,6 +83,7 @@ struct ck_epoch_ref { }; struct ck_epoch_record { + ck_stack_entry_t record_next; struct ck_epoch *global; unsigned int state; unsigned int epoch; @@ -95,15 +96,13 @@ struct ck_epoch_record { unsigned int n_dispatch; void *ct; ck_stack_t pending[CK_EPOCH_LENGTH]; - ck_stack_entry_t record_next; } CK_CC_CACHELINE; 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 n_free; + ck_stack_t records; }; typedef struct ck_epoch ck_epoch_t;