mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-09-18 12:14:47 +03:00
merge from dev-win
This commit is contained in:
commit
a3c4b1c95b
3 changed files with 15 additions and 8 deletions
|
@ -249,7 +249,7 @@ static bool _mi_heap_done(void) {
|
|||
// switch to backing heap and free it
|
||||
heap = heap->tld->heap_backing;
|
||||
if (!mi_heap_is_initialized(heap)) return false;
|
||||
|
||||
|
||||
// collect if not the main thread
|
||||
if (heap != &_mi_heap_main) {
|
||||
_mi_heap_collect_abandon(heap);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue