diff --git a/include/mimalloc.h b/include/mimalloc.h index bd91db43..9ab73c2a 100644 --- a/include/mimalloc.h +++ b/include/mimalloc.h @@ -277,7 +277,7 @@ mi_decl_export int mi_reserve_huge_os_pages_at(size_t pages, int numa_node, size mi_decl_export int mi_reserve_os_memory(size_t size, bool commit, bool allow_large) mi_attr_noexcept; mi_decl_export bool mi_manage_os_memory(void* start, size_t size, bool is_committed, bool is_large, bool is_zero, int numa_node) mi_attr_noexcept; -mi_decl_export void mi_debug_show_arenas(bool show_inuse) mi_attr_noexcept; +mi_decl_export void mi_debug_show_arenas(void) mi_attr_noexcept; // Experimental: heaps associated with specific memory arena's typedef int mi_arena_id_t; diff --git a/src/arena.c b/src/arena.c index a809b85f..bc8d7c65 100644 --- a/src/arena.c +++ b/src/arena.c @@ -927,7 +927,8 @@ static size_t mi_debug_show_bitmap(const char* prefix, const char* header, size_ return inuse_count; } -void mi_debug_show_arenas(bool show_inuse) mi_attr_noexcept { +void mi_debug_show_arenas(void) mi_attr_noexcept { + const bool show_inuse = true; size_t max_arenas = mi_atomic_load_relaxed(&mi_arena_count); size_t inuse_total = 0; //size_t abandoned_total = 0; diff --git a/test/test-stress.c b/test/test-stress.c index c0d9761a..eb788b85 100644 --- a/test/test-stress.c +++ b/test/test-stress.c @@ -322,7 +322,7 @@ int main(int argc, char** argv) { #ifndef USE_STD_MALLOC #ifndef NDEBUG - mi_debug_show_arenas(true); + mi_debug_show_arenas(); mi_collect(true); #endif #endif