aboutsummaryrefslogtreecommitdiff
path: root/src/pmem.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2024-10-30 00:57:33 +0200
committerKimplul <kimi.h.kuparinen@gmail.com>2024-10-30 00:57:33 +0200
commit44a73ecab6e91519627786a5101cd4f1a2f2b0d7 (patch)
treef5c811050a4d5ee832f5883c4d0c27efddd60817 /src/pmem.c
parent5976ad390a15726c3ddfacf8c8b282c8350f9554 (diff)
downloadkmi-44a73ecab6e91519627786a5101cd4f1a2f2b0d7.tar.gz
kmi-44a73ecab6e91519627786a5101cd4f1a2f2b0d7.zip
most of the way to passing tests
Diffstat (limited to 'src/pmem.c')
-rw-r--r--src/pmem.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/pmem.c b/src/pmem.c
index a0cd4ec..9c839f1 100644
--- a/src/pmem.c
+++ b/src/pmem.c
@@ -277,9 +277,7 @@ static pm_t __alloc_page(enum mm_order order)
__get_bit(bucket, a, &set, &bit);
bmap = __get_set(bucket, set);
- /* hmm, I might be running into a compiler bug here. Adding this
- * assert makes my error go away, weird. */
- assert(bmap->size <= order_width(order + 1));
+ bmap->size = order_width(order + 1);
bmap->next = NULL;
bmap->prev = NULL;