[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] assert_buf_ok was showing up in the profile; remove it from...



Update of /home/or/cvsroot/tor/src/or
In directory moria:/tmp/cvs-serv29515/src/or

Modified Files:
	buffers.c 
Log Message:
assert_buf_ok was showing up in the profile; remove it from critical-path functions, since it hasnt triggered for ages.

Index: buffers.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/buffers.c,v
retrieving revision 1.179
retrieving revision 1.180
diff -u -d -r1.179 -r1.180
--- buffers.c	16 Nov 2005 23:37:35 -0000	1.179
+++ buffers.c	30 Nov 2005 22:48:58 -0000	1.180
@@ -431,7 +431,7 @@
   char *next;
   size_t at_start;
 
-  assert_buf_ok(buf);
+  /* assert_buf_ok(buf); */
   tor_assert(reached_eof);
   tor_assert(s>=0);
 
@@ -594,7 +594,7 @@
   size_t flushed = 0;
   size_t flushlen0, flushlen1;
 
-  assert_buf_ok(buf);
+  /* assert_buf_ok(buf); */
   tor_assert(buf_flushlen);
   tor_assert(s>=0);
   tor_assert(*buf_flushlen <= buf->datalen);
@@ -657,7 +657,7 @@
   int r;
   size_t flushed=0;
   size_t flushlen0, flushlen1;
-  assert_buf_ok(buf);
+  /* assert_buf_ok(buf); */
   tor_assert(tls);
   tor_assert(buf_flushlen);
   tor_assert(*buf_flushlen <= buf->datalen);
@@ -703,7 +703,7 @@
    */
 
   tor_assert(string);
-  assert_buf_ok(buf);
+  /* assert_buf_ok(buf); */
 
   if (buf_ensure_capacity(buf, buf->datalen+string_len)) {
     warn(LD_MM, "buflen too small, can't hold %d bytes.", (int)(buf->datalen+string_len));
@@ -746,7 +746,7 @@
 
   tor_assert(string);
   tor_assert(string_len <= buf->datalen); /* make sure we don't ask for too much */
-  assert_buf_ok(buf);
+  /* assert_buf_ok(buf); */
 
   _split_range(buf, buf->cur, &string_len, &len2);
 
@@ -803,7 +803,7 @@
   char *headers, *body, *p;
   size_t headerlen, bodylen, contentlen;
 
-  assert_buf_ok(buf);
+  /* assert_buf_ok(buf); */
   buf_normalize(buf);
 
   if (buf_nul_terminate(buf)<0) {