From 1c8f9b319b6cd94c1c00731349c9dda6ec723979 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 11 Apr 2007 01:27:33 +0000 Subject: r12344@catbus: nickm | 2007-04-10 21:27:25 -0400 Fix documentation and usage of 2nd argument to mp_pool_new. svn:r9942 --- src/or/relay.c | 2 +- src/or/test.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/or') diff --git a/src/or/relay.c b/src/or/relay.c index 491b7a9ce4..f6b4cbb4be 100644 --- a/src/or/relay.c +++ b/src/or/relay.c @@ -1485,7 +1485,7 @@ void init_cell_pool(void) { tor_assert(!cell_pool); - cell_pool = mp_pool_new(sizeof(packed_cell_t), 64); + cell_pool = mp_pool_new(sizeof(packed_cell_t), 1<<19); } /** Free all storage used to hold cells. */ diff --git a/src/or/test.c b/src/or/test.c index 9b427cfa76..68fb97e44c 100644 --- a/src/or/test.c +++ b/src/or/test.c @@ -2119,7 +2119,7 @@ test_mempool(void) test_assert(pool->item_alloc_size >= sizeof(void*)+1); mp_pool_destroy(pool); - pool = mp_pool_new(241, 10); + pool = mp_pool_new(241, 2500); test_assert(pool->new_chunk_capacity >= 10); test_assert(pool->item_alloc_size >= sizeof(void*)+241); test_eq(pool->item_alloc_size & 0x03, 0); -- cgit v1.2.3-54-g00ecf