From 9f9305d44bb3713abc9db586b051ce537d5b4d76 Mon Sep 17 00:00:00 2001 From: daanx Date: Thu, 29 Feb 2024 17:43:52 -0800 Subject: [PATCH] use non-primitive heap default --- src/alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/alloc.c b/src/alloc.c index 738985aa..7135a857 100644 --- a/src/alloc.c +++ b/src/alloc.c @@ -412,7 +412,7 @@ static mi_decl_noinline void _mi_free_block_mt(mi_page_t* page, mi_block_t* bloc mi_atomic_load_relaxed(&segment->thread_id) == 0) { // the segment is abandoned, try to reclaim it into our heap - if (_mi_segment_attempt_reclaim(mi_prim_get_default_heap(), segment)) { + if (_mi_segment_attempt_reclaim(mi_heap_get_default(), segment)) { mi_assert_internal(_mi_prim_thread_id() == mi_atomic_load_relaxed(&segment->thread_id)); mi_free(block); // recursively free as now it will be a local free in our heap return;