projects
/
ccan
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03a2acd
)
No fair asking allocator to align greater than pool.
author
Rusty Russell
<rusty@vivaldi>
Thu, 27 Mar 2008 11:50:19 +0000
(22:50 +1100)
committer
Rusty Russell
<rusty@vivaldi>
Thu, 27 Mar 2008 11:50:19 +0000
(22:50 +1100)
alloc/test/run.c
patch
|
blob
|
history
diff --git
a/alloc/test/run.c
b/alloc/test/run.c
index 68142c7244f43a5fbb85600be5f4c223c092a076..af42f90d7d61f5bf7aa109273034f780a480b21c 100644
(file)
--- 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);