Fix a build error for --disable-tcache.
Add a missing #ifdef to conditionally exclude code that is relevant only to the tcache feature.
This commit is contained in:
parent
7d9ebea57d
commit
64ba3d7cd9
@ -1151,11 +1151,13 @@ thread_arena_ctl(const size_t *mib, size_t miblen, void *oldp, size_t *oldlenp,
|
|||||||
|
|
||||||
/* Set new arena association. */
|
/* Set new arena association. */
|
||||||
ARENA_SET(arena);
|
ARENA_SET(arena);
|
||||||
|
#ifdef JEMALLOC_TCACHE
|
||||||
{
|
{
|
||||||
tcache_t *tcache = TCACHE_GET();
|
tcache_t *tcache = TCACHE_GET();
|
||||||
if (tcache != NULL)
|
if (tcache != NULL)
|
||||||
tcache->arena = arena;
|
tcache->arena = arena;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = 0;
|
ret = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user