mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-06 23:39:31 +03:00
fix start adjustment for the commit mask
This commit is contained in:
parent
47f8caad4d
commit
f2b6938d64
1 changed files with 1 additions and 1 deletions
|
@ -487,7 +487,7 @@ static void mi_segment_commit_mask(mi_segment_t* segment, bool conservative, uin
|
||||||
start = _mi_align_down(pstart, MI_MINIMAL_COMMIT_SIZE);
|
start = _mi_align_down(pstart, MI_MINIMAL_COMMIT_SIZE);
|
||||||
end = _mi_align_up(pstart + size, MI_MINIMAL_COMMIT_SIZE);
|
end = _mi_align_up(pstart + size, MI_MINIMAL_COMMIT_SIZE);
|
||||||
}
|
}
|
||||||
if (start < segstart) {
|
if (pstart >= segstart && start < segstart) { // note: the mask is also calculated for an initial commit of the info area
|
||||||
start = segstart;
|
start = segstart;
|
||||||
}
|
}
|
||||||
if (end > segsize) {
|
if (end > segsize) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue