about summary refs log tree commit homepage
path: root/alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'alloc.c')
-rw-r--r--alloc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/alloc.c b/alloc.c
index f5ce8bc..a51407f 100644
--- a/alloc.c
+++ b/alloc.c
@@ -102,6 +102,11 @@ struct mog_rbuf *mog_rbuf_new(size_t size)
         else
                 rbuf = xmalloc(bytes);
         rbuf->rcapa = size;
+        /*
+         * do not initialize rsize here, we only need rsize when we detach
+         * a TLS rbuf and associate it with a mog_fd, not in the common
+         * case where the rbuf remains thread-local
+         */
 
         return rbuf;
 }