mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-07 15:59:32 +03:00
ensure page reset flag is always reset
This commit is contained in:
parent
2808c9f4c8
commit
94bff89347
1 changed files with 1 additions and 0 deletions
|
@ -602,6 +602,7 @@ static mi_page_t* mi_segment_span_allocate(mi_segment_t* segment, size_t slice_i
|
||||||
|
|
||||||
// ensure the memory is committed
|
// ensure the memory is committed
|
||||||
mi_segment_ensure_committed(segment, _mi_page_start(segment,page,NULL), slice_count * MI_SEGMENT_SLICE_SIZE, tld->stats);
|
mi_segment_ensure_committed(segment, _mi_page_start(segment,page,NULL), slice_count * MI_SEGMENT_SLICE_SIZE, tld->stats);
|
||||||
|
page->is_reset = false;
|
||||||
segment->used++;
|
segment->used++;
|
||||||
return page;
|
return page;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue