aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/pack.c
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2017-02-21 23:40:06 -0800
committerJason Evans <jasone@canonware.com>2017-02-23 08:57:02 -0800
commitde49674fbde4d124a0a7e7e97f5656e190980759 (patch)
tree9a29c6d5f569ea6098cc85663b4cb0e7bba4dc3f /test/unit/pack.c
parent8ac7937eb5ce011945188ef3553dbc2bcc294a25 (diff)
downloadplatform_external_jemalloc_new-de49674fbde4d124a0a7e7e97f5656e190980759.tar.gz
platform_external_jemalloc_new-de49674fbde4d124a0a7e7e97f5656e190980759.tar.bz2
platform_external_jemalloc_new-de49674fbde4d124a0a7e7e97f5656e190980759.zip
Use MALLOC_CONF rather than malloc_conf for tests.
malloc_conf does not reliably work with MSVC, which complains of "inconsistent dll linkage", i.e. its inability to support the application overriding malloc_conf when dynamically linking/loading. Work around this limitation by adding test harness support for per test shell script sourcing, and converting all tests to use MALLOC_CONF instead of malloc_conf.
Diffstat (limited to 'test/unit/pack.c')
-rw-r--r--test/unit/pack.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/test/unit/pack.c b/test/unit/pack.c
index d35ac5ea..5da4ae12 100644
--- a/test/unit/pack.c
+++ b/test/unit/pack.c
@@ -1,8 +1,5 @@
#include "test/jemalloc_test.h"
-/* Immediately purge to minimize fragmentation. */
-const char *malloc_conf = "decay_time:-1";
-
/*
* Size class that is a divisor of the page size, ideally 4+ regions per run.
*/