mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-01 17:24:38 +03:00
ensure the page submaps are zero initialized
This commit is contained in:
parent
a18b692262
commit
dcd6fd77b8
1 changed files with 1 additions and 1 deletions
|
@ -277,7 +277,7 @@ static bool mi_page_map_ensure_at(size_t idx, mi_submap_t* submap) {
|
||||||
if mi_unlikely(sub==NULL) {
|
if mi_unlikely(sub==NULL) {
|
||||||
// sub map not yet allocated, allocate it now
|
// sub map not yet allocated, allocate it now
|
||||||
mi_memid_t memid;
|
mi_memid_t memid;
|
||||||
sub = (mi_submap_t)_mi_os_alloc(MI_PAGE_MAP_SUB_SIZE, &memid);
|
sub = (mi_submap_t)_mi_os_zalloc(MI_PAGE_MAP_SUB_SIZE, &memid);
|
||||||
if (sub==NULL) {
|
if (sub==NULL) {
|
||||||
_mi_warning_message("unable to extend the page map\n");
|
_mi_warning_message("unable to extend the page map\n");
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue