From f85006f22455e9f36e6c1d06ab4d6668dcdc34a2 Mon Sep 17 00:00:00 2001 From: fef Date: Mon, 9 Aug 2021 04:05:07 +0200 Subject: [PATCH] malloc: remove obsolete assert statements A relict of debugging on my host. --- lib/malloc.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/malloc.c b/lib/malloc.c index 86207cf..bf45f35 100644 --- a/lib/malloc.c +++ b/lib/malloc.c @@ -359,9 +359,6 @@ static struct memblk *blk_slice(struct list_head *heap, struct memblk *blk, size { list_delete(&blk->list); - assert((slice_size & SIZE_MSK) == slice_size); - assert(slice_size > 0); - size_t rest_size = blk_get_size(blk) - slice_size - OVERHEAD; if (rest_size < MIN_SIZE) { blk_set_alloc(blk); @@ -395,10 +392,7 @@ static inline size_t blk_get_size(struct memblk *blk) static void blk_set_size(struct memblk *blk, size_t size) { - assert((size & SIZE_MSK) == size); - /* don't affect flags */ - blk->size &= ~SIZE_MSK; blk->size |= size;