Skip to content

Commit

Permalink
test/sizeclass: report MIN_ALLOC_{STEP_,}SIZE
Browse files Browse the repository at this point in the history
  • Loading branch information
nwf-msr committed May 24, 2024
1 parent 0afa11a commit 6c89829
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/test/func/sizeclass/sizeclass.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 6c89829

Please sign in to comment.