mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-09-08 06:31:58 +00:00
support for jemalloc
This commit is contained in:
@@ -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
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user