PR#66 by kickunderscore to ensure consistent small block alignment

This commit is contained in:
daan 2019-07-02 08:46:50 -07:00
parent d6901558cd
commit d35fc6cdc4
4 changed files with 23 additions and 13 deletions

View file

@ -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;