瀏覽代碼

malloc: Fix build with RECYCLE_BIG_ALLOCATIONS not defined

Nico Weber 4 年之前
父節點
當前提交
de4a9c61d7
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      Libraries/LibC/malloc.cpp

+ 2 - 0
Libraries/LibC/malloc.cpp

@@ -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" {