mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-06 19:38:41 +03:00
collect arenas even if not on the main thread (issue #878)
This commit is contained in:
parent
bb1fafa1bb
commit
70eb7fb390
2 changed files with 10 additions and 6 deletions
|
@ -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`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue