From b7bf1fb1a08165df25c93246e41bb5e7edaaff60 Mon Sep 17 00:00:00 2001 From: Sparchatus Date: Wed, 13 Apr 2022 12:37:35 +0000 Subject: [PATCH] More intense thread testing --- usr/mallocator/main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/usr/mallocator/main.c b/usr/mallocator/main.c index 3ae49f1..7be0a6a 100644 --- a/usr/mallocator/main.c +++ b/usr/mallocator/main.c @@ -17,14 +17,17 @@ #include #include +#include #define NUM_SMALL_BUFFERS 128 -#define NUM_THREADS 16 +#define NUM_THREADS 512 static struct thread* threads[NUM_THREADS]; __attribute__((__used__)) static int test_large_buffer(void * __args) { + barrelfish_usleep(rand() % 50 * 100000); + //allocate a 256 MiB buffer debug_printf("allocating 256MiB buffer\n"); char * big_buf = malloc(1<<28);