aboutsummaryrefslogtreecommitdiff
path: root/include/jemalloc/internal/ctl.h
diff options
context:
space:
mode:
authorJason Evans <je@fb.com>2012-02-28 16:50:47 -0800
committerJason Evans <je@fb.com>2012-02-28 16:50:47 -0800
commitb172610317babc7f365584ddd7fdaf4eb8d9d04c (patch)
tree9c16ec02092d0a6f781072721679dcce7f3497dd /include/jemalloc/internal/ctl.h
parent5389146191b279ca3b90028357dd6ad66b283def (diff)
downloadjemalloc-b172610317babc7f365584ddd7fdaf4eb8d9d04c.tar.gz
Simplify small size class infrastructure.
Program-generate small size class tables for all valid combinations of LG_TINY_MIN, LG_QUANTUM, and PAGE_SHIFT. Use the appropriate table to generate all relevant data structures, and remove the distinction between tiny/quantum/cacheline/subpage bins. Remove --enable-dynamic-page-shift. This option didn't prove useful in practice, and it prevented optimizations. Add Tilera architecture support.
Diffstat (limited to 'include/jemalloc/internal/ctl.h')
-rw-r--r--include/jemalloc/internal/ctl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/jemalloc/internal/ctl.h b/include/jemalloc/internal/ctl.h
index de4b941..28be2ae 100644
--- a/include/jemalloc/internal/ctl.h
+++ b/include/jemalloc/internal/ctl.h
@@ -40,7 +40,7 @@ struct ctl_arena_stats_s {
uint64_t ndalloc_small;
uint64_t nrequests_small;
- malloc_bin_stats_t *bstats; /* nbins elements. */
+ malloc_bin_stats_t bstats[NBINS];
malloc_large_stats_t *lstats; /* nlclasses elements. */
};