remove segment-cache as it is superseded by better arena management

This commit is contained in:
daanx 2023-04-13 15:37:54 -07:00
parent e6681f2d4b
commit e35e919ea4
9 changed files with 5 additions and 324 deletions

View file

@ -632,7 +632,6 @@ static void mi_cdecl mi_process_done(void) {
// or C-runtime termination code.
if (mi_option_is_enabled(mi_option_destroy_on_exit)) {
_mi_heap_destroy_all(); // forcefully release all memory held by all heaps (of this thread only!)
_mi_segment_cache_free_all(&_mi_heap_main_get()->tld->os); // release all cached segments
_mi_arena_collect(true /* destroy (owned) arenas */, true /* purge the rest */, &_mi_heap_main_get()->tld->stats);
}