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
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user