Apply ModArray to Metaslab data

Prevent bugs accessing outside the Slabs meta data.
This commit is contained in:
Matthew Parkinson
2019-01-24 09:37:39 +00:00
parent 5b81caac87
commit e30c94cb2a
3 changed files with 29 additions and 7 deletions

View File

@@ -755,7 +755,7 @@ namespace snmalloc
if ((allow_reserve == NoReserve) && (super == nullptr))
return super;
super->init(public_state(), large_allocator.memory_provider);
super->init(public_state());
pagemap().set_slab(super);
super_available.insert(super);
return super;