Browse Source

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.
Daniel Bertalan 4 years ago
parent
commit
5d617be462
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Kernel/Heap/kmalloc.cpp

+ 1 - 1
Kernel/Heap/kmalloc.cpp

@@ -25,7 +25,7 @@
 
 
 #define CHUNK_SIZE 32
 #define CHUNK_SIZE 32
 #define POOL_SIZE (2 * MiB)
 #define POOL_SIZE (2 * MiB)
-#define ETERNAL_RANGE_SIZE (3 * MiB)
+#define ETERNAL_RANGE_SIZE (4 * MiB)
 
 
 namespace std {
 namespace std {
 const nothrow_t nothrow;
 const nothrow_t nothrow;