diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-12-26 18:09:36 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-12-26 18:09:36 +0000 |
commit | 84b6e26c505678953baf727c5a03ea08d98efcb7 (patch) | |
tree | e2a060c6faaaf73a2e2a322f93304205052926d6 | |
parent | 8a501073555c39083e92c2783bf55e86c8a648c4 (diff) | |
download | tor-84b6e26c505678953baf727c5a03ea08d98efcb7.tar.gz tor-84b6e26c505678953baf727c5a03ea08d98efcb7.zip |
r15715@tombo: nickm | 2007-12-26 13:09:27 -0500
Peacetime managed to run overnight in paranoia mode. Disabling paranoia, so that buffers.c can be a little speedy again.
svn:r12987
-rw-r--r-- | src/or/buffers.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/or/buffers.c b/src/or/buffers.c index 3d21034ce2..e446064c97 100644 --- a/src/or/buffers.c +++ b/src/or/buffers.c @@ -16,8 +16,8 @@ const char buffers_c_id[] = #include "or.h" -#define PARANOIA -#define NOINLINE +//#define PARANOIA +//#define NOINLINE #ifdef PARANOIA #define check() STMT_BEGIN assert_buf_ok(buf); STMT_END @@ -231,6 +231,8 @@ buf_shrink_freelists(int free_all) int n_to_skip = freelists[i].cur_length - n_to_free; chunk_t **chp = &freelists[i].head; chunk_t *chunk; + log_notice(LD_MM, "FL for %d: keep %d, drop %d.", + (int)freelists[i].alloc_size, n_to_skip, n_to_free); while (n_to_skip) { tor_assert((*chp)->next); chp = &(*chp)->next; |