summaryrefslogtreecommitdiffstats
path: root/src/jemalloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/jemalloc.c')
-rw-r--r--src/jemalloc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/jemalloc.c b/src/jemalloc.c
index 7e695d6..9a5685b 100644
--- a/src/jemalloc.c
+++ b/src/jemalloc.c
@@ -1764,7 +1764,8 @@ imalloc_body(static_opts_t *sopts, dynamic_opts_t *dopts, tsd_t *tsd) {
* We should never specify particular arenas or tcaches from
* within our internal allocations.
*/
- assert(dopts->tcache_ind == TCACHE_IND_AUTOMATIC);
+ assert(dopts->tcache_ind == TCACHE_IND_AUTOMATIC ||
+ dopts->tcache_ind == TCACHE_IND_NONE);
assert(dopts->arena_ind = ARENA_IND_AUTOMATIC);
dopts->tcache_ind = TCACHE_IND_NONE;
/* We know that arena 0 has already been initialized. */