mirror of
https://github.com/microsoft/mimalloc.git
synced 2024-12-29 06:36:09 +08:00
do delayed decommit if not reclaiming abandoned blocks
This commit is contained in:
parent
0d25493c39
commit
c609248f0e
@ -1208,6 +1208,7 @@ static mi_segment_t* mi_segment_try_reclaim(mi_heap_t* heap, size_t needed_slice
|
||||
}
|
||||
else {
|
||||
// otherwise, push on the visited list so it gets not looked at too quickly again
|
||||
mi_segment_delayed_decommit(segment, false, tld->stats); // decommit if needed
|
||||
mi_abandoned_visited_push(segment);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user