diff --git a/include/alignment.h b/include/alignment.h index 1d5fcec..70d77fc 100644 --- a/include/alignment.h +++ b/include/alignment.h @@ -8,7 +8,9 @@ // // *********************************************************************** #pragma once -#define ALIGNMENT 16 +// Match the CPU cache line size (see cache.h) to prevent false sharing between +// concurrently-written fields that happen to land on the same cache line. +#define ALIGNMENT 64 #pragma pack(ALIGNMENT) #define class_alignment alignas(ALIGNMENT) \ No newline at end of file