Avoid extra dumping for JEMALLOC_OPTIONS=L.

This commit is contained in:
Jason Evans 2010-02-11 15:18:17 -08:00
parent cd90fca928
commit 59e9be0f5f

View File

@ -1100,10 +1100,12 @@ void
arena_prof_accum(arena_t *arena, uint64_t accumbytes) arena_prof_accum(arena_t *arena, uint64_t accumbytes)
{ {
arena->prof_accumbytes += accumbytes; if (prof_interval != 0) {
if (arena->prof_accumbytes >= prof_interval) { arena->prof_accumbytes += accumbytes;
prof_idump(); if (arena->prof_accumbytes >= prof_interval) {
arena->prof_accumbytes -= prof_interval; prof_idump();
arena->prof_accumbytes -= prof_interval;
}
} }
} }
#endif #endif