diff --git a/src/mem/largealloc.h b/src/mem/largealloc.h index 50120ee..14cbd53 100644 --- a/src/mem/largealloc.h +++ b/src/mem/largealloc.h @@ -366,7 +366,8 @@ namespace snmalloc p = memory_provider.template reserve(large_class); if (p == nullptr) return nullptr; - memory_provider.template notify_using(p, size); + memory_provider.template notify_using( + p, bits::align_up(size, OS_PAGE_SIZE)); } else {