From ac7ce121236b056e49522b539112e50ab987cd11 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 28 Dec 2021 19:12:22 +0100 Subject: Kernel: Remove the kmalloc_eternal heap :^) This was a premature optimization from the early days of SerenityOS. The eternal heap was a simple bump pointer allocator over a static byte array. My original idea was to avoid heap fragmentation and improve data locality, but both ideas were rooted in cargo culting, not data. We would reserve 4 MiB at boot and only ended up using ~256 KiB, wasting the rest. This patch replaces all kmalloc_eternal() usage by regular kmalloc(). --- Kernel/Bus/USB/USBManagement.h | 1 - 1 file changed, 1 deletion(-) (limited to 'Kernel/Bus') diff --git a/Kernel/Bus/USB/USBManagement.h b/Kernel/Bus/USB/USBManagement.h index 0219c13350..b275facc8e 100644 --- a/Kernel/Bus/USB/USBManagement.h +++ b/Kernel/Bus/USB/USBManagement.h @@ -13,7 +13,6 @@ namespace Kernel::USB { class USBManagement { - AK_MAKE_ETERNAL; public: USBManagement(); -- cgit v1.2.3