From 6c898290a97e7274b4641d066d00e934a8bfaccd Mon Sep 17 00:00:00 2001 From: Nathaniel Wesley Filardo Date: Fri, 24 May 2024 04:02:00 +0100 Subject: [PATCH] test/sizeclass: report MIN_ALLOC_{STEP_,}SIZE --- src/test/func/sizeclass/sizeclass.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/test/func/sizeclass/sizeclass.cc b/src/test/func/sizeclass/sizeclass.cc index 034bc8dc6..836c62111 100644 --- a/src/test/func/sizeclass/sizeclass.cc +++ b/src/test/func/sizeclass/sizeclass.cc @@ -75,6 +75,10 @@ int main(int, char**) bool failed = false; size_t size_low = 0; + std::cout << "Configured with minimum allocation size " + << snmalloc::MIN_ALLOC_SIZE << " and step size " + << snmalloc::MIN_ALLOC_STEP_SIZE << std::endl; + std::cout << "0 has sizeclass: " << (size_t)snmalloc::size_to_sizeclass(0) << std::endl;