diff options
author | Roger Dingledine <arma@torproject.org> | 2005-05-02 23:39:09 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-05-02 23:39:09 +0000 |
commit | aa6bcd50ca00e8e7e61ca80dab96cb63d3643d79 (patch) | |
tree | 9baba735018b5743718afdc5d3eb96fd5f83ac50 | |
parent | ad547cbb8cf0c0e3d6e8ca85c1362a6891590841 (diff) | |
download | tor-aa6bcd50ca00e8e7e61ca80dab96cb63d3643d79.tar.gz tor-aa6bcd50ca00e8e7e61ca80dab96cb63d3643d79.zip |
comment buf_shrink
svn:r4168
-rw-r--r-- | src/or/buffers.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/or/buffers.c b/src/or/buffers.c index 8f81eb2267..015245d84f 100644 --- a/src/or/buffers.c +++ b/src/or/buffers.c @@ -244,6 +244,11 @@ static INLINE void buf_shrink_if_underfull(buf_t *buf) { #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) { |