support for jemalloc

This commit is contained in:
roberto@debian32
2011-05-12 12:55:07 +02:00
parent d9630a32c7
commit df000b0cb2
2 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ debug = false
unbit = false
xml_implementation = libxml2
yaml_implementation = auto
tcmalloc = false
malloc_implementation = libc
plugins =
bin_name = uwsgi
plugin_dir = .
+5 -2
View File
@@ -350,8 +350,11 @@ class uConf(object):
self.cflags.append('-DUWSGI_EVENT_FILEMONITOR_USE_NONE')
if self.get('tcmalloc'):
self.libs.append('-ltcmalloc')
if self.get('malloc_implementation') != 'libc':
if self.get('malloc_implementation') == 'tcmalloc':
self.libs.append('-ltcmalloc')
if self.get('malloc_implementation') == 'jemalloc':
self.libs.append('-ljemalloc')
if self.get('embedded'):
self.cflags.append('-DUWSGI_EMBEDDED')