diff --git a/Kernel/Heap/kmalloc.cpp b/Kernel/Heap/kmalloc.cpp index 8e3fbbadce..683aa9f158 100644 --- a/Kernel/Heap/kmalloc.cpp +++ b/Kernel/Heap/kmalloc.cpp @@ -23,7 +23,12 @@ #include #include -#define CHUNK_SIZE 32 +#if ARCH(I386) +static constexpr size_t CHUNK_SIZE = 32; +#else +static constexpr size_t CHUNK_SIZE = 64; +#endif + #define POOL_SIZE (2 * MiB) #define ETERNAL_RANGE_SIZE (4 * MiB)