[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r12987: Peacetime managed to run overnight in paranoia mode. Disabli (in tor/trunk: . src/or)
Author: nickm
Date: 2007-12-26 13:09:36 -0500 (Wed, 26 Dec 2007)
New Revision: 12987
Modified:
tor/trunk/
tor/trunk/src/or/buffers.c
Log:
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.
Property changes on: tor/trunk
___________________________________________________________________
svk:merge ticket from /tor/trunk [r15715] on d9e39d38-0f13-419c-a857-e10a0ce2aa0c
Modified: tor/trunk/src/or/buffers.c
===================================================================
--- tor/trunk/src/or/buffers.c 2007-12-26 03:15:05 UTC (rev 12986)
+++ tor/trunk/src/or/buffers.c 2007-12-26 18:09:36 UTC (rev 12987)
@@ -16,8 +16,8 @@
#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 @@
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;