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:
Jason Evans 2011-03-30 16:02:25 -07:00
parent 7d9ebea57d
commit 64ba3d7cd9

View 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;