diff options
author | Jason Evans <je@facebook.com> | 2010-02-12 22:46:37 (GMT) |
---|---|---|
committer | Jason Evans <je@facebook.com> | 2010-02-12 22:46:37 (GMT) |
commit | f894f74d367e2cca98e0b27de92858d8a959f31a (patch) | |
tree | 6a722af17129875385f23d2e24e6b4f2620b2467 | |
parent | 65aae2cf57cb8ca93562abcc93e89625f6a14c4d (diff) | |
download | jemalloc-f894f74d367e2cca98e0b27de92858d8a959f31a.zip jemalloc-f894f74d367e2cca98e0b27de92858d8a959f31a.tar.gz jemalloc-f894f74d367e2cca98e0b27de92858d8a959f31a.tar.bz2 |
Fix a bug in nmalloc stats.
-rw-r--r-- | jemalloc/src/arena.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/jemalloc/src/arena.c b/jemalloc/src/arena.c index d0de530..47c2fee 100644 --- a/jemalloc/src/arena.c +++ b/jemalloc/src/arena.c @@ -1076,12 +1076,10 @@ arena_tcache_fill(arena_t *arena, tcache_bin_t *tbin, size_t binind bin->stats.nfills++; bin->stats.nrequests += tbin->tstats.nrequests; if (bin->reg_size <= small_maxclass) { - arena->stats.nmalloc_small += (i - tbin->ncached); arena->stats.allocated_small += (i - tbin->ncached) * bin->reg_size; arena->stats.nmalloc_small += tbin->tstats.nrequests; } else { - arena->stats.nmalloc_medium += (i - tbin->ncached); arena->stats.allocated_medium += (i - tbin->ncached) * bin->reg_size; arena->stats.nmalloc_medium += tbin->tstats.nrequests; |