mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-12 22:24:58 +03:00
PR#66 by kickunderscore to ensure consistent small block alignment
This commit is contained in:
parent
d6901558cd
commit
d35fc6cdc4
4 changed files with 23 additions and 13 deletions
1
src/os.c
1
src/os.c
|
@ -216,6 +216,7 @@ static void* mi_mmap_aligned(size_t size, size_t alignment, mi_stats_t* stats) {
|
|||
UNUSED(size);
|
||||
UNUSED(alignment);
|
||||
#endif
|
||||
UNUSED(stats);
|
||||
mi_assert(p == NULL || (uintptr_t)p % alignment == 0);
|
||||
if (p != NULL) mi_stat_increase(stats->mmap_calls, 1);
|
||||
return p;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue