revise the segment map to only apply to OS allocated segments and reduce the .BSS footprint

This commit is contained in:
daanx 2024-06-02 14:46:59 -07:00
parent 5501f59f6c
commit a964322a21
4 changed files with 82 additions and 105 deletions

View file

@ -258,7 +258,7 @@ int main(int argc, char** argv) {
#ifdef HEAP_WALK
mi_option_enable(mi_option_visit_abandoned);
#endif
#ifndef NDBEBUG
#ifndef NDEBUG
mi_option_set(mi_option_arena_reserve, 32 * 1024 /* in kib = 32MiB */);
#endif
#ifndef USE_STD_MALLOC