mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-06 23:39:31 +03:00
don't override a page candidate with a page that is too full
This commit is contained in:
parent
26eaa1f4e2
commit
df82338d8a
1 changed files with 1 additions and 1 deletions
|
@ -783,7 +783,7 @@ static mi_page_t* mi_page_queue_find_free_ex(mi_heap_t* heap, mi_page_queue_t* p
|
||||||
page_candidate = page;
|
page_candidate = page;
|
||||||
candidate_count = 0;
|
candidate_count = 0;
|
||||||
}
|
}
|
||||||
else if (/* !mi_page_is_expandable(page) && */ page->used >= page_candidate->used) {
|
else if (!mi_page_mostly_used(page) && page->used >= page_candidate->used) {
|
||||||
page_candidate = page;
|
page_candidate = page;
|
||||||
}
|
}
|
||||||
// if we find a non-expandable candidate, or searched for N pages, return with the best candidate
|
// if we find a non-expandable candidate, or searched for N pages, return with the best candidate
|
||||||
|
|
Loading…
Add table
Reference in a new issue