fix assertions

This commit is contained in:
daanx 2024-12-03 11:06:07 -08:00
parent 666c089fc8
commit 3fc2c8e279
6 changed files with 8 additions and 10 deletions

View file

@ -811,7 +811,7 @@ static mi_page_t* mi_page_queue_find_free_ex(mi_heap_t* heap, mi_page_queue_t* p
_mi_page_free(page_candidate, pq);
page_candidate = page;
}
else if (page->used >= page_candidate->used && !mi_page_is_mostly_used(page)) {
else if (page->used >= page_candidate->used) { // && !mi_page_is_mostly_used(page)) {
page_candidate = page;
}
// if we find a non-expandable candidate, or searched for N pages, return with the best candidate