summaryrefslogtreecommitdiff
path: root/Kernel/Memory/PhysicalZone.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-12-28 19:12:22 +0100
committerAndreas Kling <kling@serenityos.org>2021-12-28 21:02:38 +0100
commitac7ce121236b056e49522b539112e50ab987cd11 (patch)
treecbb027e0df58e528dd4bf26b5d2d3e0404124b4e /Kernel/Memory/PhysicalZone.h
parenta1be1358918505eedbcdb2d5600194c96b8260c7 (diff)
downloadserenity-ac7ce121236b056e49522b539112e50ab987cd11.zip
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().
Diffstat (limited to 'Kernel/Memory/PhysicalZone.h')
-rw-r--r--Kernel/Memory/PhysicalZone.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/Kernel/Memory/PhysicalZone.h b/Kernel/Memory/PhysicalZone.h
index 5f0a2fae1e..964d642b62 100644
--- a/Kernel/Memory/PhysicalZone.h
+++ b/Kernel/Memory/PhysicalZone.h
@@ -17,7 +17,6 @@ namespace Kernel::Memory {
// The allocator uses a buddy block scheme internally.
class PhysicalZone {
- AK_MAKE_ETERNAL;
AK_MAKE_NONCOPYABLE(PhysicalZone);
AK_MAKE_NONMOVABLE(PhysicalZone);