Merge branch 'dev3' into dev3-bin

This commit is contained in:
Daan Leijen 2024-12-20 11:56:16 -08:00
commit 13a58ac343
2 changed files with 3 additions and 3 deletions

View file

@ -673,8 +673,8 @@ if (MI_OVERRIDE)
target_compile_definitions(mimalloc PRIVATE MI_MALLOC_OVERRIDE)
if (WIN32)
# on windows we should generate mimalloc-override.dll.
string(REPLACE "mimalloc" "mimalloc-override" mi_override_output_name ${mi_basename})
set_target_properties(mimalloc PROPERTIES OUTPUT_NAME ${mi_override_output_name})
# string(REPLACE "mimalloc" "mimalloc-override" mi_override_output_name ${mi_basename})
# set_target_properties(mimalloc PROPERTIES OUTPUT_NAME ${mi_override_output_name})
endif()
endif()
if(NOT WIN32)

View file

@ -682,7 +682,7 @@ static mi_decl_noinline mi_page_t* mi_page_queue_find_free_ex(mi_heap_t* heap, m
_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