summaryrefslogtreecommitdiffstats
path: root/include/jemalloc
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2017-02-13 18:35:41 (GMT)
committerJason Evans <jasone@canonware.com>2017-02-16 23:52:11 (GMT)
commitb0654b95ed784be609c5212bd34f8141bdf5caca (patch)
treed4adca54fb4368dc51cbf7251194936ece73012e /include/jemalloc
parentf8fee6908d554aaa4f356bfcf7642bc7707eb6df (diff)
downloadjemalloc-b0654b95ed784be609c5212bd34f8141bdf5caca.zip
jemalloc-b0654b95ed784be609c5212bd34f8141bdf5caca.tar.gz
jemalloc-b0654b95ed784be609c5212bd34f8141bdf5caca.tar.bz2
Fix arena->stats.mapped accounting.
Mapped memory increases when extent_alloc_wrapper() succeeds, and decreases when extent_dalloc_wrapper() is called (during purging).
Diffstat (limited to 'include/jemalloc')
-rw-r--r--include/jemalloc/internal/arena_externs.h2
-rw-r--r--include/jemalloc/internal/private_symbols.txt1
2 files changed, 3 insertions, 0 deletions
diff --git a/include/jemalloc/internal/arena_externs.h b/include/jemalloc/internal/arena_externs.h
index 2880399..72cbf5f 100644
--- a/include/jemalloc/internal/arena_externs.h
+++ b/include/jemalloc/internal/arena_externs.h
@@ -15,6 +15,8 @@ extern const arena_bin_info_t arena_bin_info[NBINS];
void arena_stats_large_nrequests_add(tsdn_t *tsdn, arena_stats_t *arena_stats,
szind_t szind, uint64_t nrequests);
+void arena_stats_mapped_add(tsdn_t *tsdn, arena_stats_t *arena_stats,
+ size_t size);
void arena_stats_merge(tsdn_t *tsdn, arena_t *arena, unsigned *nthreads,
const char **dss, ssize_t *decay_time, size_t *nactive, size_t *ndirty,
arena_stats_t *astats, malloc_bin_stats_t *bstats,
diff --git a/include/jemalloc/internal/private_symbols.txt b/include/jemalloc/internal/private_symbols.txt
index ff54a35..15d0449 100644
--- a/include/jemalloc/internal/private_symbols.txt
+++ b/include/jemalloc/internal/private_symbols.txt
@@ -67,6 +67,7 @@ arena_sdalloc
arena_set
arena_slab_regind
arena_stats_init
+arena_stats_mapped_add
arena_stats_merge
arena_tcache_fill_small
arena_tdata_get