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

@@ -28,8 +28,8 @@ namespace snmalloc
friend class Pool;
private:
std::atomic_flag lock = ATOMIC_FLAG_INIT;
MPMCStack<T, PreZeroed> stack;
std::atomic_flag lock = ATOMIC_FLAG_INIT;
T* list{nullptr};
public: