diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-08-26 23:18:05 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-08-26 23:18:05 +0300 |
| commit | 280e963e1334a21778e2f257fe09daa4890074a1 (patch) | |
| tree | 6f21c7541163ace072a0d2be06274b0bf6b2dd2d | |
| parent | 3f194f1c7264945a63b0018b159cc83bd9385c59 (diff) | |
| download | kmi-280e963e1334a21778e2f257fe09daa4890074a1.tar.gz kmi-280e963e1334a21778e2f257fe09daa4890074a1.zip | |
add magic assert
| -rw-r--r-- | src/pmem.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -277,6 +277,10 @@ 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->next = NULL; bmap->prev = NULL; bmap->used = 0; |
