mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-06 23:39:31 +03:00
decommit when abandoned segments move to the visited list
This commit is contained in:
parent
b72065f04b
commit
cdfbd6d08f
1 changed files with 1 additions and 1 deletions
|
@ -1315,7 +1315,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_segment_delayed_decommit(segment, true, tld->stats); // decommit if needed
|
||||
mi_abandoned_visited_push(segment);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue