From 0dc8227bebede2a01e67b7dea368450a54086d8c Mon Sep 17 00:00:00 2001 From: Sparchatus Date: Wed, 13 Apr 2022 12:48:28 +0000 Subject: [PATCH] Reducing number of threads to below MAX_THREADS --- usr/mallocator/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr/mallocator/main.c b/usr/mallocator/main.c index 7be0a6a..24961f4 100644 --- a/usr/mallocator/main.c +++ b/usr/mallocator/main.c @@ -20,7 +20,8 @@ #include #define NUM_SMALL_BUFFERS 128 -#define NUM_THREADS 512 +// one thread is for the main and MAX_THREADS is 256 +#define NUM_THREADS (256 - 1) static struct thread* threads[NUM_THREADS];