Move some structures to cache lines
Prevent some bad sharing of cache lines by aligning some concurrently accessed strucutures.
This commit is contained in:
committed by
Matthew Parkinson
parent
3407347925
commit
fd408637a7
@@ -11,7 +11,7 @@ namespace snmalloc
|
||||
using ABAT = ABA<T, c>;
|
||||
|
||||
private:
|
||||
ABAT stack;
|
||||
alignas(CACHELINE_SIZE) ABAT stack;
|
||||
|
||||
public:
|
||||
constexpr MPMCStack() = default;
|
||||
|
||||
Reference in New Issue
Block a user