From d5c4a16e58d25c54809c65461c3abe9b075a64df Mon Sep 17 00:00:00 2001 From: daanx Date: Thu, 12 Dec 2024 17:57:36 -0800 Subject: [PATCH] lower full page retain more aggressively in a threadpool --- src/heap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/heap.c b/src/heap.c index 1d8142f7..dee404d2 100644 --- a/src/heap.c +++ b/src/heap.c @@ -202,7 +202,7 @@ void _mi_heap_init(mi_heap_t* heap, mi_arena_id_t arena_id, bool noreclaim, uint heap->allow_page_reclaim = false; // and halve the full page retain (possibly to 0) if (heap->full_page_retain >= 0) { - heap->full_page_retain = heap->full_page_retain / 2; + heap->full_page_retain = heap->full_page_retain / 4; } }