mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:17:44 +00:00
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:
parent
527a6f4ded
commit
17f239e1c0
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ public:
|
||||||
void deallocate_block(void*);
|
void deallocate_block(void*);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static constexpr size_t max_cached_blocks = 64;
|
static constexpr size_t max_cached_blocks = 512;
|
||||||
|
|
||||||
Vector<void*, max_cached_blocks> m_blocks;
|
Vector<void*, max_cached_blocks> m_blocks;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue