mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-01-14 08:37:59 +08:00
reenable decommitting of a huge aligned prefix
This commit is contained in:
parent
061bbe25b0
commit
7dce31f743
@ -1261,7 +1261,7 @@ static mi_page_t* mi_segment_huge_page_alloc(size_t size, size_t page_alignment,
|
||||
mi_segments_track_size(-(long)segment->segment_size, tld);
|
||||
mi_page_t* page = mi_segment_find_free(segment, tld);
|
||||
mi_assert_internal(page != NULL);
|
||||
#if MI_DEBUG > 3
|
||||
|
||||
if (page_alignment > 0) {
|
||||
size_t psize;
|
||||
size_t pre_size;
|
||||
@ -1276,7 +1276,7 @@ static mi_page_t* mi_segment_huge_page_alloc(size_t size, size_t page_alignment,
|
||||
_mi_mem_decommit(decommit_start, decommit_size, os_tld);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
// for huge pages we initialize the xblock_size as we may
|
||||
// overallocate to accommodate large alignments.
|
||||
size_t psize;
|
||||
|
Loading…
x
Reference in New Issue
Block a user