Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/snmalloc/backend_helpers/palrange.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ namespace snmalloc
#ifdef SNMALLOC_TRACING
message<1024>("Pal range alloc: {} ({})", result.unsafe_ptr(), size);
#endif
message<1024>("Pal range alloc: {} ({})", result.unsafe_ptr(), size);

return result;
}
Expand Down
10 changes: 10 additions & 0 deletions src/test/func/statistics/stats.cc
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,16 @@ void debug_check_empty_2()
std::cout << "." << std::flush;
}
auto r = snmalloc::alloc(size);
if (r == nullptr)
{
std::cout << "Allocation failed at " << i << " allocations of " << size
<< std::endl;
for (size_t j = 0; j < i; j++)
{
snmalloc::dealloc(allocs[j]);
}
return;
}
allocs.push_back(r);
snmalloc::debug_check_empty(&result);
if (result != false)
Expand Down
Loading
Loading