Skip to content

Commit

Permalink
Update src/snmalloc/mem/corealloc.h
Browse files Browse the repository at this point in the history
  • Loading branch information
mjp41 authored Dec 17, 2022
1 parent 7bb5e3b commit 85550e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/snmalloc/mem/corealloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -927,6 +927,7 @@ namespace snmalloc
auto slab_interior = slab_metadata->get_slab_interior(key);
const PagemapEntry& entry =
Config::Backend::get_metaentry(slab_interior);
SNMALLOC_ASSERT(slab_metadata == entry.get_metadata());
auto size_class = entry.get_sizeclass();
auto slab_size = sizeclass_full_to_slab_size(size_class);
auto slab_start = bits::align_down(slab_interior, slab_size);
Expand Down

0 comments on commit 85550e0

Please sign in to comment.