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

[or-cvs] comment buf_shrink



Update of /home2/or/cvsroot/tor/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/tor/src/or

Modified Files:
	buffers.c 
Log Message:
comment buf_shrink


Index: buffers.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/buffers.c,v
retrieving revision 1.148
retrieving revision 1.149
diff -u -d -r1.148 -r1.149
--- buffers.c	2 May 2005 23:36:13 -0000	1.148
+++ buffers.c	2 May 2005 23:39:09 -0000	1.149
@@ -244,6 +244,11 @@
 #define buf_shrink_if_underfull(buf) do {} while (0)
 #endif
 
+/** Resize buf so it won't hold extra memory that we haven't
+ * been using lately. Try to shrink the buf until it is the
+ * largest factor of two that can contain highwater, but never
+ * smaller than MIN_LAZY_SHRINK_SIZE.
+ */
 void
 buf_shrink(buf_t *buf)
 {