Remove stale static_assert

With snmalloc2, slabs are linked through the Metaslab structure directly rather
than in-band in a free allocation, so we no longer need to store a SlabLink in
even the smallest allocation classes.
This commit is contained in:
Nathaniel Wesley Filardo
2021-08-10 23:58:50 +01:00
committed by Nathaniel Wesley Filardo
parent f38a5a63d5
commit 7a02ae949f

View File

@@ -14,10 +14,6 @@ namespace snmalloc
using SlabLink = CDLLNode<>;
static_assert(
sizeof(SlabLink) <= MIN_ALLOC_SIZE,
"Need to be able to pack a SlabLink into any free small alloc");
// The Metaslab represent the status of a single slab.
// This can be either a short or a standard slab.
class alignas(CACHELINE_SIZE) Metaslab : public SlabLink