Merge branch 'dev3' into dev3-bin

This commit is contained in:
daanx 2025-01-05 11:47:08 -08:00
commit 86952f6d1b
4 changed files with 11 additions and 5 deletions

View file

@ -1438,7 +1438,7 @@ static size_t mi_debug_show_bitmap_binned(const char* header1, const char* heade
return mi_debug_show_chunks(header1, header2, header3, slice_count, mi_bitmap_chunk_count(bitmap), &bitmap->chunks[0], chunk_bins, invert, arena, narrow);
}
void mi_debug_show_arenas(bool show_pages, bool narrow) mi_attr_noexcept {
static void mi_debug_show_arenas_ex(bool show_pages, bool narrow) mi_attr_noexcept {
mi_subproc_t* subproc = _mi_subproc();
size_t max_arenas = mi_arenas_get_count(subproc);
//size_t free_total = 0;
@ -1473,6 +1473,10 @@ void mi_debug_show_arenas(bool show_pages, bool narrow) mi_attr_noexcept {
if (show_pages) _mi_output_message("total pages in arenas: %zu\n", page_total);
}
void mi_debug_show_arenas(void) mi_attr_noexcept {
mi_debug_show_arenas_ex(true /* show pages */, false /* narrow? */);
}
/* -----------------------------------------------------------
Reserve a huge page arena.