only reclaim for exclusive heaps in their associated arena

This commit is contained in:
daanx 2024-06-02 13:16:20 -07:00
parent 635d626c82
commit 5501f59f6c
6 changed files with 45 additions and 21 deletions

View file

@ -255,6 +255,12 @@ static void test_leak(void) {
#endif
int main(int argc, char** argv) {
#ifdef HEAP_WALK
mi_option_enable(mi_option_visit_abandoned);
#endif
#ifndef NDBEBUG
mi_option_set(mi_option_arena_reserve, 32 * 1024 /* in kib = 32MiB */);
#endif
#ifndef USE_STD_MALLOC
mi_stats_reset();
#endif