Compare commits

..

No commits in common. "8b2f7746564da2be0766db49414d16a64590d8c7" and "bea8a12d3d267fa900a5491e700ea73053d575ca" have entirely different histories.

2 changed files with 15 additions and 14 deletions

View file

@ -6,8 +6,10 @@
trigger:
branches:
include:
- main
- dev*
- master
- dev
- dev2
- dev3
tags:
include:
- v*

View file

@ -216,11 +216,9 @@ static mi_decl_noinline void* mi_arena_try_alloc_at(
// now actually commit
bool commit_zero = false;
if (!_mi_os_commit_ex(p, mi_size_of_slices(slice_count), &commit_zero, mi_size_of_slices(slice_count - already_committed_count))) {
// if the commit fails, roll back and return NULL
_mi_arenas_free(p, mi_size_of_slices(slice_count), *memid); // this will decommit as well (if partially committed)
return NULL;
memid->initially_committed = false;
}
else {
// committed
if (commit_zero) { memid->initially_zero = true; }
#if MI_DEBUG > 1
@ -232,6 +230,7 @@ static mi_decl_noinline void* mi_arena_try_alloc_at(
}
#endif
}
}
else {
// already fully commited.
// if the OS has overcommit, and this is the first time we access these pages, then