File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -469,7 +469,7 @@ namespace snmalloc
469469 return ;
470470 }
471471
472- # ifndef SNMALLOC_SAFE_CLIENT
472+ # ifndef NDEBUG
473473 if (size > 64 || address_cast (super) != address_cast (p))
474474 {
475475 error (" Not deallocating start of an object" );
@@ -1009,7 +1009,7 @@ namespace snmalloc
10091009
10101010 void small_dealloc (Superslab* super, void * p, uint8_t sizeclass)
10111011 {
1012- #ifndef SNMALLOC_SAFE_CLIENT
1012+ #ifndef NDEBUG
10131013 Slab* slab = Slab::get (p);
10141014 if (!slab->is_start_of_object (super, p))
10151015 {
@@ -1146,7 +1146,7 @@ namespace snmalloc
11461146 stats ().sizeclass_dealloc (sizeclass);
11471147 bool was_full = slab->dealloc (p, large_allocator.memory_provider );
11481148
1149- #ifndef SNMALLOC_SAFE_CLIENT
1149+ #ifndef NDEBUG
11501150 if (!is_multiple_of_sizeclass (
11511151 sizeclass_to_size (sizeclass),
11521152 address_cast (slab) + SUPERSLAB_SIZE - address_cast (p)))
You can’t perform that action at this time.
0 commit comments