From e6737e85a68414efcda00985e278490ffdc6fd2c Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Thu, 27 Mar 2008 22:50:19 +1100 Subject: [PATCH 1/1] No fair asking allocator to align greater than pool. --- alloc/test/run.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alloc/test/run.c b/alloc/test/run.c index 68142c72..af42f90d 100644 --- a/alloc/test/run.c +++ b/alloc/test/run.c @@ -52,7 +52,7 @@ int main(int argc, char *argv[]) plan_tests(139); /* FIXME: Needs to be page aligned for now. */ - posix_memalign(&mem, getpagesize(), POOL_SIZE); + posix_memalign(&mem, 1 << POOL_ORD, POOL_SIZE); /* Small pool, all allocs fail, even 0-length. */ alloc_init(mem, 0); -- 2.39.2