collect arenas even if not on the main thread (issue #878)

This commit is contained in:
Daan 2024-04-19 12:01:26 -07:00
parent bb1fafa1bb
commit 70eb7fb390
2 changed files with 10 additions and 6 deletions

View file

@ -709,7 +709,7 @@ static void mi_arenas_unsafe_destroy(void) {
// Purge the arenas; if `force_purge` is true, amenable parts are purged even if not yet expired
void _mi_arena_collect(bool force_purge, mi_stats_t* stats) {
mi_arenas_try_purge(force_purge, true /* visit all */, stats);
mi_arenas_try_purge(force_purge, force_purge /* visit all? */, stats);
}
// destroy owned arenas; this is unsafe and should only be done using `mi_option_destroy_on_exit`