1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:18:12 +00:00
serenity/Kernel/Graphics
Andreas Kling ac7ce12123 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().
2021-12-28 21:02:38 +01:00
..
Bochs Kernel: Remove the kmalloc_eternal heap :^) 2021-12-28 21:02:38 +01:00
Console Kernel: Remove unused String.h includes 2021-12-11 13:15:26 -08:00
Intel Kernel: Remove the kmalloc_eternal heap :^) 2021-12-28 21:02:38 +01:00
VirtIOGPU Kernel: Remove the kmalloc_eternal heap :^) 2021-12-28 21:02:38 +01:00
Definitions.h Kernel: Switch static_asserts of a type size to AK::AssertSize 2021-09-05 20:08:57 +02:00
FramebufferDevice.cpp Kernel+LibC: Move errno definitions to Kernel/API/POSIX 2021-12-16 22:21:35 +03:30
FramebufferDevice.h Kernel: Remove the kmalloc_eternal heap :^) 2021-12-28 21:02:38 +01:00
GenericFramebufferDevice.cpp Kernel: Use copy_typed_from_user() in more places :^) 2021-12-18 11:30:10 +01:00
GenericFramebufferDevice.h Kernel: Remove the kmalloc_eternal heap :^) 2021-12-28 21:02:38 +01:00
GenericGraphicsAdapter.h Kernel: Remove unused String.h includes 2021-12-11 13:15:26 -08:00
GraphicsManagement.cpp Kernel/Graphics: Rename GraphicsDevice => GenericGraphicsAdapter 2021-10-27 07:57:44 +03:00
GraphicsManagement.h Kernel: Remove the kmalloc_eternal heap :^) 2021-12-28 21:02:38 +01:00
VGACompatibleAdapter.cpp Kernel: Replace KResult and KResultOr<T> with Error and ErrorOr<T> 2021-11-08 01:10:53 +01:00
VGACompatibleAdapter.h Kernel: Remove the kmalloc_eternal heap :^) 2021-12-28 21:02:38 +01:00