mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-05 09:52:54 +00:00
Before this change, we were hard-coding 4 KiB. This meant that systems with a 16 KiB native page size were wasting 12 KiB per HeapBlock on nothing, leading to worse locality and more mmap/madvise churn. We now query the system page size on startup and use that as the HeapBlock size. The only downside here is that some of the pointer math for finding the base of a HeapBlock now has to use a runtime computed value instead of a compile time constant. But that's a small price to pay for what we get. |
||
---|---|---|
.. | ||
BlockAllocator.cpp | ||
BlockAllocator.h | ||
Cell.cpp | ||
Cell.h | ||
CellAllocator.cpp | ||
CellAllocator.h | ||
ConservativeVector.cpp | ||
ConservativeVector.h | ||
DeferGC.h | ||
GCPtr.h | ||
Handle.cpp | ||
Handle.h | ||
Heap.cpp | ||
Heap.h | ||
HeapBlock.cpp | ||
HeapBlock.h | ||
HeapFunction.h | ||
HeapRoot.h | ||
Internals.h | ||
MarkedVector.cpp | ||
MarkedVector.h |