Move some structures to cache lines

Prevent some bad sharing of cache lines by aligning some concurrently
accessed strucutures.
This commit is contained in:
Matthew Parkinson
2021-10-28 14:23:15 +01:00
committed by Matthew Parkinson
parent 3407347925
commit fd408637a7
3 changed files with 8 additions and 8 deletions

View File

@@ -11,7 +11,7 @@ namespace snmalloc
using ABAT = ABA<T, c>;
private:
ABAT stack;
alignas(CACHELINE_SIZE) ABAT stack;
public:
constexpr MPMCStack() = default;