summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Evans <je@facebook.com>2010-02-16 23:46:57 (GMT)
committerJason Evans <je@facebook.com>2010-02-16 23:46:57 (GMT)
commitfbb504def6f8cb051ac9766b757c2d48d643a281 (patch)
treef6d1843df4ab81e0aee95f60a4b79185c439ed71
parentf894f74d367e2cca98e0b27de92858d8a959f31a (diff)
downloadjemalloc-fbb504def6f8cb051ac9766b757c2d48d643a281.zip
jemalloc-fbb504def6f8cb051ac9766b757c2d48d643a281.tar.gz
jemalloc-fbb504def6f8cb051ac9766b757c2d48d643a281.tar.bz2
Don't implicitly enable interval-based profiling.
-rw-r--r--jemalloc/src/prof.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/jemalloc/src/prof.c b/jemalloc/src/prof.c
index edaa7fb..d1bb4d0 100644
--- a/jemalloc/src/prof.c
+++ b/jemalloc/src/prof.c
@@ -1112,7 +1112,7 @@ prof_boot0(void)
opt_prof = true;
opt_prof_udump = false;
prof_interval = 0;
- } else
+ } else if (opt_prof)
prof_interval = (((uint64_t)1U) << opt_lg_prof_interval);
}