]> git.saurik.com Git - redis.git/blobdiff - deps/jemalloc/src/ctl.c
Marginally cleaner lookupKeyByPattern() implementation.
[redis.git] / deps / jemalloc / src / ctl.c
index 40fdbacbcdee4733a0ec3b23e8a21a8ea581179d..e5336d36949f5ffd69b0f8c0f6ab6543a35033ef 100644 (file)
@@ -1151,11 +1151,13 @@ thread_arena_ctl(const size_t *mib, size_t miblen, void *oldp, size_t *oldlenp,
 
                /* Set new arena association. */
                ARENA_SET(arena);
+#ifdef JEMALLOC_TCACHE
                {
                        tcache_t *tcache = TCACHE_GET();
                        if (tcache != NULL)
                                tcache->arena = arena;
                }
+#endif
        }
 
        ret = 0;