aboutsummaryrefslogtreecommitdiff
path: root/include/jemalloc/internal/ctl.h
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2015-02-11 12:24:27 -0800
committerJason Evans <jasone@canonware.com>2015-02-12 00:15:56 -0800
commitcbf3a6d70371d2390b8b0e76814e04cc6088002c (patch)
tree2b2cfd2ec225e680a83a5d231bc11e44892e66b9 /include/jemalloc/internal/ctl.h
parentf30e261c5b85d2900224f91c6d426a23dce94fe9 (diff)
downloadjemalloc-cbf3a6d70371d2390b8b0e76814e04cc6088002c.tar.gz
Move centralized chunk management into arenas.
Migrate all centralized data structures related to huge allocations and recyclable chunks into arena_t, so that each arena can manage huge allocations and recyclable virtual memory completely independently of other arenas. Add chunk node caching to arenas, in order to avoid contention on the base allocator. Use chunks_rtree to look up huge allocations rather than a red-black tree. Maintain a per arena unsorted list of huge allocations (which will be needed to enumerate huge allocations during arena reset). Remove the --enable-ivsalloc option, make ivsalloc() always available, and use it for size queries if --enable-debug is enabled. The only practical implications to this removal are that 1) ivsalloc() is now always available during live debugging (and the underlying radix tree is available during core-based debugging), and 2) size query validation can no longer be enabled independent of --enable-debug. Remove the stats.chunks.{current,total,high} mallctls, and replace their underlying statistics with simpler atomically updated counters used exclusively for gdump triggering. These statistics are no longer very useful because each arena manages chunks independently, and per arena statistics provide similar information. Simplify chunk synchronization code, now that base chunk allocation cannot cause recursive lock acquisition.
Diffstat (limited to 'include/jemalloc/internal/ctl.h')
-rw-r--r--include/jemalloc/internal/ctl.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/include/jemalloc/internal/ctl.h b/include/jemalloc/internal/ctl.h
index 65617bc..ab9c986 100644
--- a/include/jemalloc/internal/ctl.h
+++ b/include/jemalloc/internal/ctl.h
@@ -54,11 +54,6 @@ struct ctl_stats_s {
size_t active;
size_t metadata;
size_t mapped;
- struct {
- size_t current; /* stats_chunks.curchunks */
- uint64_t total; /* stats_chunks.nchunks */
- size_t high; /* stats_chunks.highchunks */
- } chunks;
unsigned narenas;
ctl_arena_stats_t *arenas; /* (narenas + 1) elements. */
};