mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-06 23:39:31 +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
|
||||
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++;
|
||||
return page;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue