use frac 8 for reclaim_on_free and reabandon; halve full_page_retain if running in a threadpool

This commit is contained in:
daanx 2024-12-11 16:26:39 -08:00
parent 1c8d15abac
commit ccf5e36e6b
5 changed files with 13 additions and 3 deletions

View file

@ -642,7 +642,7 @@ static mi_decl_noinline mi_page_t* mi_page_queue_find_free_ex(mi_heap_t* heap, m
size_t count = 0;
#endif
long candidate_limit = 0; // we reset this on the first candidate to limit the search
long full_page_retain = _mi_option_get_fast(mi_option_full_page_retain);
long full_page_retain = heap->full_page_retain;
mi_page_t* page_candidate = NULL; // a page with free space
mi_page_t* page = pq->first;