From ffd5f6da1062dcb1808750a5709598f29a968af5 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 27 Sep 2004 21:57:01 +0000 Subject: [PATCH] Bug fix. --- src/threads/palloc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/threads/palloc.c b/src/threads/palloc.c index f7d49b2..3e7c6a2 100644 --- a/src/threads/palloc.c +++ b/src/threads/palloc.c @@ -166,6 +166,7 @@ init_pool (struct pool *p, void *start, void *end, const char *name) lock_init (&p->lock, name); bitmap_size = ROUND_UP (bitmap_needed_bytes (page_cnt), PGSIZE); + page_cnt -= bitmap_size / PGSIZE; p->used_map = bitmap_create_preallocated (page_cnt, start, bitmap_size); p->start = start + bitmap_size; p->end = end; -- 2.30.2