diff options
author | Jason Evans <je@fb.com> | 2011-03-30 23:02:25 (GMT) |
---|---|---|
committer | Jason Evans <je@fb.com> | 2011-03-30 23:02:25 (GMT) |
commit | 64ba3d7cd9901ed00d690365b1b3da6aa7b9cd59 (patch) | |
tree | b051bbbeb0dfcefb057e9943068d178824b05d71 | |
parent | 7d9ebea57d1d82702261cb75a1b885a709b6bcc7 (diff) | |
download | jemalloc-64ba3d7cd9901ed00d690365b1b3da6aa7b9cd59.zip jemalloc-64ba3d7cd9901ed00d690365b1b3da6aa7b9cd59.tar.gz jemalloc-64ba3d7cd9901ed00d690365b1b3da6aa7b9cd59.tar.bz2 |
Fix a build error for --disable-tcache.
Add a missing #ifdef to conditionally exclude code that is relevant only
to the tcache feature.
-rw-r--r-- | jemalloc/src/ctl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/jemalloc/src/ctl.c b/jemalloc/src/ctl.c index 40fdbac..e5336d3 100644 --- a/jemalloc/src/ctl.c +++ b/jemalloc/src/ctl.c @@ -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; |