Files
ladybird/Libraries/LibGC/BlockAllocator.cpp
Andreas Kling c78a50c4c3 LibGC: Use mmap for HeapBlock chunks
Use a direct anonymous mapping for POSIX BlockAllocator chunks and trim
any temporary padding needed to make the live 2 MiB chunk HeapBlock-
aligned.

The GC only needs each 16 KiB HeapBlock slot aligned so from_cell() can
recover the block base by masking low bits. Request that alignment from
mach_vm_map() as well, rather than aligning whole chunks to 2 MiB.
2026-05-10 10:58:11 +02:00

12 KiB