diff options
author | Jason Evans <je@facebook.com> | 2010-02-11 23:18:17 (GMT) |
---|---|---|
committer | Jason Evans <je@facebook.com> | 2010-02-11 23:18:17 (GMT) |
commit | 59e9be0f5f8006c4531f647f718683e2ec016b21 (patch) | |
tree | 96b36e406b6d430a10c7bd2847304a0d9d824af0 /jemalloc | |
parent | cd90fca9282917f01002e63806095fe3e6d04f01 (diff) | |
download | jemalloc-59e9be0f5f8006c4531f647f718683e2ec016b21.zip jemalloc-59e9be0f5f8006c4531f647f718683e2ec016b21.tar.gz jemalloc-59e9be0f5f8006c4531f647f718683e2ec016b21.tar.bz2 |
Avoid extra dumping for JEMALLOC_OPTIONS=L.
Diffstat (limited to 'jemalloc')
-rw-r--r-- | jemalloc/src/arena.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/jemalloc/src/arena.c b/jemalloc/src/arena.c index 53d703b..d0de530 100644 --- a/jemalloc/src/arena.c +++ b/jemalloc/src/arena.c @@ -1100,10 +1100,12 @@ void arena_prof_accum(arena_t *arena, uint64_t accumbytes) { - arena->prof_accumbytes += accumbytes; - if (arena->prof_accumbytes >= prof_interval) { - prof_idump(); - arena->prof_accumbytes -= prof_interval; + if (prof_interval != 0) { + arena->prof_accumbytes += accumbytes; + if (arena->prof_accumbytes >= prof_interval) { + prof_idump(); + arena->prof_accumbytes -= prof_interval; + } } } #endif |