Refactor is_start_of_object

This commit is contained in:
Matthew Parkinson
2021-04-30 15:41:41 +01:00
committed by Matthew Parkinson
parent 5198821905
commit f0ebbebf74
2 changed files with 4 additions and 6 deletions

View File

@@ -1140,7 +1140,7 @@ namespace snmalloc
sizeclass_t sizeclass)
{
check_client(
Metaslab::is_start_of_object(Slab::get_meta(slab), address_cast(p_ret)),
Slab::get_meta(slab)->is_start_of_object(address_cast(p_ret)),
"Not deallocating start of an object");
small_dealloc_start(super, slab, p_auth, p_ret, sizeclass);