From 5d617be462d7ec01eb845cf34914bbdbf796201c Mon Sep 17 00:00:00 2001 From: Daniel Bertalan Date: Fri, 16 Jul 2021 20:59:42 +0200 Subject: [PATCH] Kernel: Bump eternal kmalloc range to 4 MiB Kernels built with Clang seem to be quite allocation-heavy compared to their GCC counterparts. We would sometimes end up crashing during boot because the eternal ranges had no free capacity. --- Kernel/Heap/kmalloc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/Heap/kmalloc.cpp b/Kernel/Heap/kmalloc.cpp index e7af6d1cbf..c18e64293a 100644 --- a/Kernel/Heap/kmalloc.cpp +++ b/Kernel/Heap/kmalloc.cpp @@ -25,7 +25,7 @@ #define CHUNK_SIZE 32 #define POOL_SIZE (2 * MiB) -#define ETERNAL_RANGE_SIZE (3 * MiB) +#define ETERNAL_RANGE_SIZE (4 * MiB) namespace std { const nothrow_t nothrow;