LibJS: Increase GC heap BlockAllocator cache size

Let's accept keeping up to 8 MiB of HeapBlock memory cached. This allows
the GC allocator to reuse memory instead of asking the kernel for more.
This commit is contained in:
Andreas Kling 2021-10-07 23:20:47 +02:00
commit 17f239e1c0
Notes: sideshowbarker 2024-07-18 02:56:16 +09:00

View file

@ -20,7 +20,7 @@ public:
void deallocate_block(void*);
private:
static constexpr size_t max_cached_blocks = 64;
static constexpr size_t max_cached_blocks = 512;
Vector<void*, max_cached_blocks> m_blocks;
};