summaryrefslogtreecommitdiffstats
path: root/jemalloc/include
diff options
context:
space:
mode:
authorJason Evans <je@fb.com>2011-03-07 07:03:33 (GMT)
committerJason Evans <je@fb.com>2011-03-07 07:03:33 (GMT)
commit814b9bda7f17cbedac9969e3526736e85c5f2077 (patch)
tree4e19d2670f89a20d940f211dff6d9896552e423d /jemalloc/include
parent6e56e5ec6a246c313e44cee0df9fd60483436cfd (diff)
downloadjemalloc-814b9bda7f17cbedac9969e3526736e85c5f2077.zip
jemalloc-814b9bda7f17cbedac9969e3526736e85c5f2077.tar.gz
jemalloc-814b9bda7f17cbedac9969e3526736e85c5f2077.tar.bz2
Fix a cpp logic regression.
Fix a cpp logic error that was introduced by the recent commit: Fix "thread.{de,}allocatedp" mallctl.
Diffstat (limited to 'jemalloc/include')
-rw-r--r--jemalloc/include/jemalloc/internal/jemalloc_internal.h.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/jemalloc/include/jemalloc/internal/jemalloc_internal.h.in b/jemalloc/include/jemalloc/internal/jemalloc_internal.h.in
index a27416c..aab2bfb 100644
--- a/jemalloc/include/jemalloc/internal/jemalloc_internal.h.in
+++ b/jemalloc/include/jemalloc/internal/jemalloc_internal.h.in
@@ -369,7 +369,7 @@ size_t s2u(size_t size);
size_t sa2u(size_t size, size_t alignment, size_t *run_size_p);
void malloc_write(const char *s);
arena_t *choose_arena(void);
-# ifdef NO_TLS
+# if (defined(JEMALLOC_STATS) && defined(NO_TLS))
thread_allocated_t *thread_allocated_get(void);
# endif
#endif
@@ -533,7 +533,7 @@ choose_arena(void)
return (ret);
}
-#ifdef NO_TLS
+#if (defined(JEMALLOC_STATS) && defined(NO_TLS))
JEMALLOC_INLINE thread_allocated_t *
thread_allocated_get(void)
{