[or-cvs] r13546: Add a --with-tcmalloc argument to configure. (tor/trunk)

nickm at seul.org nickm at seul.org
Sun Feb 17 19:26:55 UTC 2008


Author: nickm
Date: 2008-02-17 14:26:55 -0500 (Sun, 17 Feb 2008)
New Revision: 13546

Modified:
   tor/trunk/
   tor/trunk/ChangeLog
   tor/trunk/configure.in
Log:
 r14240 at tombo:  nickm | 2008-02-17 14:26:52 -0500
 Add a --with-tcmalloc argument to configure.



Property changes on: tor/trunk
___________________________________________________________________
 svk:merge ticket from /tor/trunk [r14240] on 49666b30-7950-49c5-bedf-9dc8f3168102
 svk:merge ticket from /tor/trunk [r18068] on 8246c3cf-6607-4228-993b-4d95d33730f1

Modified: tor/trunk/ChangeLog
===================================================================
--- tor/trunk/ChangeLog	2008-02-17 19:09:02 UTC (rev 13545)
+++ tor/trunk/ChangeLog	2008-02-17 19:26:55 UTC (rev 13546)
@@ -16,6 +16,9 @@
       replacement on Linux: some glibc libraries do very poorly
       with Tor's memory allocation patterns.  Pass
       --enable-openbsd-malloc to get the replacement malloc code.
+    - Add a --with-tcmalloc option to the configure script to link
+      against tcmalloc (if present).  Does not yet search for
+      non-system include paths.
 
   o Minor features (controller):
     - Add a new __HashedControlSessionPassword option for controllers

Modified: tor/trunk/configure.in
===================================================================
--- tor/trunk/configure.in	2008-02-17 19:09:02 UTC (rev 13545)
+++ tor/trunk/configure.in	2008-02-17 19:26:55 UTC (rev 13546)
@@ -557,6 +557,14 @@
   AC_CHECK_FUNCS(dmalloc_strdup dmalloc_strndup)
 fi
 
+AC_ARG_WITH(tcmalloc,
+[  --with-tcmalloc         Use tcmalloc memory allocation library. ],
+[ tcmalloc=yes ], [ tcmalloc=no ])
+
+if test x$tcmalloc = xyes ; then
+   LDFLAGS="-ltcmalloc $LDFLAGS"
+fi
+
 # Allow user to specify an alternate syslog facility
 AC_ARG_WITH(syslog-facility,
 [  --with-syslog-facility=LOG syslog facility to use (default=LOG_DAEMON)],



More information about the tor-commits mailing list