mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 07:41:01 +00:00
malloc: Fix build with RECYCLE_BIG_ALLOCATIONS not defined
This commit is contained in:
parent
344090a5b0
commit
de4a9c61d7
Notes:
sideshowbarker
2024-07-19 03:31:38 +09:00
Author: https://github.com/nico
Commit: de4a9c61d7
Pull-request: https://github.com/SerenityOS/serenity/pull/3185
1 changed files with 2 additions and 0 deletions
|
@ -174,12 +174,14 @@ static Allocator* allocator_for_size(size_t size, size_t& good_size)
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef RECYCLE_BIG_ALLOCATIONS
|
||||||
static BigAllocator* big_allocator_for_size(size_t size)
|
static BigAllocator* big_allocator_for_size(size_t size)
|
||||||
{
|
{
|
||||||
if (size == 65536)
|
if (size == 65536)
|
||||||
return &big_allocators()[0];
|
return &big_allocators()[0];
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue