1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-10 05:37:35 +00:00

malloc: Fix build with RECYCLE_BIG_ALLOCATIONS not defined

This commit is contained in:
Nico Weber 2020-08-16 20:15:00 -04:00 committed by Andreas Kling
parent 344090a5b0
commit de4a9c61d7

View file

@ -174,12 +174,14 @@ static Allocator* allocator_for_size(size_t size, size_t& good_size)
return nullptr;
}
#ifdef RECYCLE_BIG_ALLOCATIONS
static BigAllocator* big_allocator_for_size(size_t size)
{
if (size == 65536)
return &big_allocators()[0];
return nullptr;
}
#endif
extern "C" {