replace assert with SNMALLOC_ASSERT
This commit is contained in:
@@ -34,7 +34,7 @@ namespace snmalloc
|
||||
|
||||
void dec()
|
||||
{
|
||||
assert(current > 0);
|
||||
SNMALLOC_ASSERT(current > 0);
|
||||
current--;
|
||||
}
|
||||
|
||||
@@ -143,7 +143,7 @@ namespace snmalloc
|
||||
|
||||
#ifdef USE_SNMALLOC_STATS
|
||||
auto index = (size == 0) ? 0 : bits::to_exp_mant<BUCKETS_BITS>(size);
|
||||
assert(index < TOTAL_BUCKETS);
|
||||
SNMALLOC_ASSERT(index < TOTAL_BUCKETS);
|
||||
bucketed_requests[index]++;
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user