Fix to page alignment for size of commit.

This commit is contained in:
Matthew Parkinson
2020-04-14 12:12:51 +01:00
parent d135786ad5
commit 60005c809a

View File

@@ -366,7 +366,8 @@ namespace snmalloc
p = memory_provider.template reserve<false>(large_class);
if (p == nullptr)
return nullptr;
memory_provider.template notify_using<zero_mem>(p, size);
memory_provider.template notify_using<zero_mem>(
p, bits::align_up(size, OS_PAGE_SIZE));
}
else
{