From 71df87bcb7f5d083e3489ffde36b32561896831b Mon Sep 17 00:00:00 2001 From: Evan Ramos Date: Mon, 13 May 2024 23:23:45 -0500 Subject: [PATCH] mimalloc: _mi_page_malloc_zero can't be "extern inline" --- source/mimalloc/src/alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/mimalloc/src/alloc.c b/source/mimalloc/src/alloc.c index 6c9c5baf36..09e5b03c14 100644 --- a/source/mimalloc/src/alloc.c +++ b/source/mimalloc/src/alloc.c @@ -28,7 +28,7 @@ terms of the MIT license. A copy of the license can be found in the file // Fast allocation in a page: just pop from the free list. // Fall back to generic allocation only if the list is empty. // Note: in release mode the (inlined) routine is about 7 instructions with a single test. -extern inline void* _mi_page_malloc_zero(mi_heap_t* heap, mi_page_t* page, size_t size, bool zero) mi_attr_noexcept +extern /*inline*/ void* _mi_page_malloc_zero(mi_heap_t* heap, mi_page_t* page, size_t size, bool zero) mi_attr_noexcept { mi_assert_internal(page->block_size == 0 /* empty heap */ || mi_page_block_size(page) >= size); mi_block_t* const block = page->free;