Move is_start_of_object into Metaslab.

This commit is contained in:
Matthew Parkinson
2021-03-12 16:37:32 +00:00
committed by Matthew Parkinson
parent 1d12e34b9f
commit e7dce55f19
3 changed files with 9 additions and 10 deletions

View File

@@ -1214,7 +1214,7 @@ namespace snmalloc
Superslab* super, Slab* slab, void* p, sizeclass_t sizeclass)
{
#ifdef CHECK_CLIENT
if (!slab->is_start_of_object(super, p))
if (!slab->get_meta().is_start_of_object(p))
{
error("Not deallocating start of an object");
}