Files
ladybird/Libraries/LibGC/Heap.cpp
Andreas Kling 4a3ee27702 LibGC: Use Vector::grow_capacity() in MarkingVisitor
Using ensure_capacity() was a mistake, as that API is for specifying an
exact needed capacity, while grow_capacity() is for growing at a
reasonable rate.

Amusingly, we ended up with very different behavior on macOS and Linux
here, since ensure_capacity() calls kmalloc_good_size() which quantizes
to malloc bucket sizes on macOS, but is effectively a no-op on Linux.

Extreme slowdown on Linux caught by GarBench/marking-stress.js
2026-01-08 21:42:01 +01:00

24 KiB