mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-23 21:23:06 +00:00
Disable percpu_arena by default.
This commit is contained in:
@@ -23,6 +23,7 @@ possible_config_opts = [
|
||||
possible_malloc_conf_opts = [
|
||||
'tcache:false',
|
||||
'dss:primary',
|
||||
'percpu_arena:percpu',
|
||||
]
|
||||
|
||||
print 'set -e'
|
||||
@@ -45,13 +46,20 @@ for cc, cxx in possible_compilers:
|
||||
",".join(malloc_conf_opts) if len(malloc_conf_opts) > 0
|
||||
else '')
|
||||
)
|
||||
|
||||
# Per CPU arenas are only supported on Linux.
|
||||
linux_supported = ('percpu_arena:percpu' in malloc_conf_opts)
|
||||
# Heap profiling and dss are not supported on OS X.
|
||||
darwin_unsupported = ('--enable-prof' in config_opts or \
|
||||
'dss:primary' in malloc_conf_opts)
|
||||
if darwin_unsupported:
|
||||
if linux_supported:
|
||||
print 'if [[ "$unamestr" = "Linux" ]]; then'
|
||||
elif darwin_unsupported:
|
||||
print 'if [[ "$unamestr" != "Darwin" ]]; then'
|
||||
|
||||
print config_line
|
||||
print "make clean"
|
||||
print "make -j" + str(MAKE_J_VAL) + " check"
|
||||
if darwin_unsupported:
|
||||
|
||||
if linux_supported or darwin_unsupported:
|
||||
print 'fi'
|
||||
|
||||
Reference in New Issue
Block a user