mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-07 15:59:32 +03:00
purge on page free as well
This commit is contained in:
parent
f6320bd3be
commit
280123bd5c
1 changed files with 8 additions and 4 deletions
|
@ -1026,6 +1026,10 @@ void _mi_segment_page_free(mi_page_t* page, bool force, mi_segments_tld_t* tld)
|
|||
// only abandoned pages; remove from free list and abandon
|
||||
mi_segment_abandon(segment,tld);
|
||||
}
|
||||
else {
|
||||
// perform delayed purges
|
||||
mi_segment_try_purge(segment, false /* force? */, tld->stats);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue