From cb70aa3f7f142205d835e2a9455ec5f2a66c5b04 Mon Sep 17 00:00:00 2001 From: Matthew Parkinson Date: Tue, 22 Jan 2019 10:03:29 +0000 Subject: [PATCH] Restricted another array to bounds. --- src/mem/largealloc.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mem/largealloc.h b/src/mem/largealloc.h index 4745471..6c26ab7 100644 --- a/src/mem/largealloc.h +++ b/src/mem/largealloc.h @@ -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 large_stack[NUM_LARGE_CLASSES]; + ModArray> large_stack; /** * Primitive allocator for structure that are required before