NFC: Extract MetaCommon from ChunkRecord

This commit is contained in:
Nathaniel Wesley Filardo
2021-10-17 16:27:29 +01:00
committed by Nathaniel Wesley Filardo
parent 5bb556cb68
commit f0b7dc4b04
4 changed files with 17 additions and 6 deletions

View File

@@ -322,7 +322,8 @@ namespace snmalloc
auto start_of_slab = pointer_align_down<void>(
p, snmalloc::sizeclass_to_slab_size(sizeclass));
// TODO Add bounds correctly here
chunk_record->chunk = capptr::Chunk<void>(start_of_slab.unsafe_ptr());
chunk_record->meta_common.chunk =
capptr::Chunk<void>(start_of_slab.unsafe_ptr());
#ifdef SNMALLOC_TRACING
std::cout << "Slab " << start_of_slab.unsafe_ptr()