Fix builds on MSVC 2016
Without this it complains that LocalCache's constructor can't be constexpr because small_fast_free_lists isn't initialized. It's not clear to me why it didn't mind before, and nobody else seems to mind now, but this shouldn't break anyone else, either.
This commit is contained in:
committed by
Nathaniel Wesley Filardo
parent
501c14661f
commit
7deb3b61da
@@ -51,7 +51,7 @@ namespace snmalloc
|
||||
// allocation on the fast path. This part of the code is inspired by
|
||||
// mimalloc.
|
||||
FreeListIter<capptr::bounds::Alloc, capptr::bounds::AllocWild>
|
||||
small_fast_free_lists[NUM_SIZECLASSES];
|
||||
small_fast_free_lists[NUM_SIZECLASSES] = {};
|
||||
|
||||
// This is the entropy for a particular thread.
|
||||
LocalEntropy entropy;
|
||||
|
||||
Reference in New Issue
Block a user