diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-02-06 19:34:32 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-02-06 19:34:32 +0000 |
commit | 4d70094b6ebf9557cb7b22ebad6037ab4e221ff8 (patch) | |
tree | 96a71a2eb9425018b691401430f4b58dbe922370 /src/common/mempool.c | |
parent | 6e2946fb5d59595278bd0f0ef0aa4e092905dc97 (diff) | |
download | tor-4d70094b6ebf9557cb7b22ebad6037ab4e221ff8.tar.gz tor-4d70094b6ebf9557cb7b22ebad6037ab4e221ff8.zip |
r17951@catbus: nickm | 2008-02-06 14:34:13 -0500
Add more documentation; change the behavior of read_to_buf_tls to be more consistent. Note a longstanding problem with current read/write interfaces.
svn:r13407
Diffstat (limited to 'src/common/mempool.c')
-rw-r--r-- | src/common/mempool.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/mempool.c b/src/common/mempool.c index e4e81b759d..e33edd1eed 100644 --- a/src/common/mempool.c +++ b/src/common/mempool.c @@ -400,6 +400,9 @@ mp_pool_new(size_t item_size, size_t chunk_capacity) void mp_pool_clean(mp_pool_t *pool, int n) { + /* XXXX020 this is stupid. We shouldn't care about empty chunks if there + * is lots of space in used chunks. */ + mp_chunk_t *chunk, **first_to_free; if (n < 0) { /* As said in the documentation, "negative n" means "leave an additional |