From 7a02ae949f0b02b1ff9fdbf6eee8225c3eb58745 Mon Sep 17 00:00:00 2001 From: Nathaniel Wesley Filardo Date: Tue, 10 Aug 2021 23:58:50 +0100 Subject: [PATCH] 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. --- src/mem/metaslab.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/mem/metaslab.h b/src/mem/metaslab.h index ff2da87..41f73b1 100644 --- a/src/mem/metaslab.h +++ b/src/mem/metaslab.h @@ -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