mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-07 11:58:41 +03:00
use frac 8 for reclaim_on_free and reabandon; halve full_page_retain if running in a threadpool
This commit is contained in:
parent
1c8d15abac
commit
ccf5e36e6b
5 changed files with 13 additions and 3 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue