Restricted another array to bounds.

This commit is contained in:
Matthew Parkinson
2019-01-22 10:03:29 +00:00
parent 1d5df3b7a9
commit cb70aa3f7f

View File

@@ -2,6 +2,7 @@
#include "../ds/flaglock.h"
#include "../ds/mpmcstack.h"
#include "../ds/helpers.h"
#include "../pal/pal.h"
#include "allocstats.h"
#include "baseslab.h"
@@ -62,7 +63,7 @@ namespace snmalloc
/**
* Stack of large allocations that have been returned for reuse.
*/
MPMCStack<Largeslab, PreZeroed> large_stack[NUM_LARGE_CLASSES];
ModArray<NUM_LARGE_CLASSES, MPMCStack<Largeslab, PreZeroed>> large_stack;
/**
* Primitive allocator for structure that are required before