Skip to content

Commit

Permalink
don't override a page candidate with a page that is too full
Browse files Browse the repository at this point in the history
  • Loading branch information
daanx committed Dec 20, 2024
1 parent 26eaa1f commit df82338
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/page.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
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;
}
// if we find a non-expandable candidate, or searched for N pages, return with the best candidate
Expand Down

0 comments on commit df82338

Please sign in to comment.