diff options
author | Jason Evans <je@fb.com> | 2012-02-13 23:18:19 (GMT) |
---|---|---|
committer | Jason Evans <je@fb.com> | 2012-02-13 23:18:19 (GMT) |
commit | 746868929afae3e346b47d0fa8a78d7fb131d5a4 (patch) | |
tree | 3a8cba563838fdbcda3efbc161b79858ae084be4 /include | |
parent | ef8897b4b938111fcc9b54725067f1dbb33a4c20 (diff) | |
download | jemalloc-746868929afae3e346b47d0fa8a78d7fb131d5a4.zip jemalloc-746868929afae3e346b47d0fa8a78d7fb131d5a4.tar.gz jemalloc-746868929afae3e346b47d0fa8a78d7fb131d5a4.tar.bz2 |
Remove highruns statistics.
Diffstat (limited to 'include')
-rw-r--r-- | include/jemalloc/internal/arena.h | 4 | ||||
-rw-r--r-- | include/jemalloc/internal/stats.h | 6 |
2 files changed, 4 insertions, 6 deletions
diff --git a/include/jemalloc/internal/arena.h b/include/jemalloc/internal/arena.h index cacb03f..4a87ef5 100644 --- a/include/jemalloc/internal/arena.h +++ b/include/jemalloc/internal/arena.h @@ -639,6 +639,10 @@ arena_malloc(size_t size, bool zero) else return (arena_malloc_small(choose_arena(), size, zero)); } else { + /* + * Initialize tcache after checking size in order to avoid + * infinite recursion during tcache initialization. + */ if (size <= tcache_maxclass && (tcache = tcache_get()) != NULL) return (tcache_alloc_large(tcache, size, zero)); else diff --git a/include/jemalloc/internal/stats.h b/include/jemalloc/internal/stats.h index 64ba4bd..4af23c3 100644 --- a/include/jemalloc/internal/stats.h +++ b/include/jemalloc/internal/stats.h @@ -59,9 +59,6 @@ struct malloc_bin_stats_s { */ uint64_t reruns; - /* High-water mark for this bin. */ - size_t highruns; - /* Current number of runs in this bin. */ size_t curruns; }; @@ -83,9 +80,6 @@ struct malloc_large_stats_s { */ uint64_t nrequests; - /* High-water mark for this size class. */ - size_t highruns; - /* Current number of runs of this size class. */ size_t curruns; }; |