summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2017-04-20 17:21:37 -0700
committerJason Evans <jasone@canonware.com>2017-04-21 10:06:12 -0700
commit4403c9ab441eabb6c55d93b99836f7126e46be75 (patch)
treea7bf4b383956b2cd02b4cb8bdb8012640d283130 /scripts
parent5aa46f027df42636d4aa1fb70d1078a6c5f96420 (diff)
downloadjemalloc-4403c9ab441eabb6c55d93b99836f7126e46be75.tar.gz
Remove --disable-tcache.
Simplify configuration by removing the --disable-tcache option, but replace the testing for that configuration with --with-malloc-conf=tcache:false. Fix the thread.arena and thread.tcache.flush mallctls to work correctly if tcache is disabled. This partially resolves #580.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/gen_run_tests.py2
-rwxr-xr-xscripts/gen_travis.py15
2 files changed, 10 insertions, 7 deletions
diff --git a/scripts/gen_run_tests.py b/scripts/gen_run_tests.py
index 729ecb1a..9e46ba90 100755
--- a/scripts/gen_run_tests.py
+++ b/scripts/gen_run_tests.py
@@ -18,7 +18,7 @@ possible_config_opts = [
'--enable-debug',
'--enable-prof',
'--disable-stats',
- '--disable-tcache',
+ '--with-malloc-conf=tcache:false',
]
print 'set -e'
diff --git a/scripts/gen_travis.py b/scripts/gen_travis.py
index 35a10ee6..4649cb71 100755
--- a/scripts/gen_travis.py
+++ b/scripts/gen_travis.py
@@ -24,11 +24,11 @@ script:
# The 'default' configuration is gcc, on linux, with no compiler or configure
# flags. We also test with clang, -m32, --enable-debug, --enable-prof,
-# --disable-stats, and --disable-tcache. To avoid abusing travis though, we
-# don't test all 2**7 = 128 possible combinations of these; instead, we only
-# test combinations of up to 2 'unusual' settings, under the hope that bugs
-# involving interactions of such settings are rare.
-# things at once, for C(7, 0) + C(7, 1) + C(7, 2) = 29
+# --disable-stats, and --with-malloc-conf=tcache:false. To avoid abusing
+# travis though, we don't test all 2**7 = 128 possible combinations of these;
+# instead, we only test combinations of up to 2 'unusual' settings, under the
+# hope that bugs involving interactions of such settings are rare.
+# Things at once, for C(7, 0) + C(7, 1) + C(7, 2) = 29
MAX_UNUSUAL_OPTIONS = 2
os_default = 'linux'
@@ -40,7 +40,10 @@ compilers_unusual = 'CC=clang CXX=clang++'
compiler_flag_unusuals = ['-m32']
configure_flag_unusuals = [
- '--enable-debug', '--enable-prof', '--disable-stats', '--disable-tcache',
+ '--enable-debug',
+ '--enable-prof',
+ '--disable-stats',
+ '--with-malloc-conf=tcache:false',
]
all_unusuals = (