mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-12 14:18:42 +03:00
fix unprotect of guard pages
This commit is contained in:
parent
37b43e4cea
commit
b8846f7a27
3 changed files with 8 additions and 3 deletions
|
@ -210,7 +210,7 @@ static void mi_cache_purge(mi_os_tld_t* tld) {
|
|||
if (slot->expire != 0 && now >= slot->expire) { // safe read
|
||||
// still expired, decommit it
|
||||
slot->expire = 0;
|
||||
mi_assert_internal(slot->is_committed && !slot->is_large);
|
||||
mi_assert_internal(slot->is_committed && mi_bitmap_is_claimed(cache_available_large, MI_CACHE_FIELDS, 1, bitidx));
|
||||
_mi_abandoned_await_readers(); // wait until safe to decommit
|
||||
_mi_os_decommit(slot->p, MI_SEGMENT_SIZE, tld->stats);
|
||||
slot->is_committed = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue