summaryrefslogtreecommitdiffstats
path: root/include/jemalloc
diff options
context:
space:
mode:
authorQi Wang <interwq@gwu.edu>2019-07-15 22:56:05 (GMT)
committerQi Wang <interwq@gmail.com>2019-07-24 18:24:22 (GMT)
commit4e36ce34c1e6a6f470a9355b90b0a757c6fdb0b5 (patch)
tree3a48669b6f9c4acc7edf0bf6eca3a105cf7aaaf5 /include/jemalloc
parent42807fcd9ed68c78f660c6dd85bcf9d82e134244 (diff)
downloadjemalloc-4e36ce34c1e6a6f470a9355b90b0a757c6fdb0b5.zip
jemalloc-4e36ce34c1e6a6f470a9355b90b0a757c6fdb0b5.tar.gz
jemalloc-4e36ce34c1e6a6f470a9355b90b0a757c6fdb0b5.tar.bz2
Track the leaked VM space via the abandoned_vm counter.
The counter is 0 unless metadata allocation failed (indicates OOM), and is mainly for sanity checking.
Diffstat (limited to 'include/jemalloc')
-rw-r--r--include/jemalloc/internal/arena_stats.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/jemalloc/internal/arena_stats.h b/include/jemalloc/internal/arena_stats.h
index 3ffe9c7..23949ed 100644
--- a/include/jemalloc/internal/arena_stats.h
+++ b/include/jemalloc/internal/arena_stats.h
@@ -112,6 +112,9 @@ struct arena_stats_s {
arena_stats_u64_t nflushes_large; /* Derived. */
arena_stats_u64_t nrequests_large; /* Derived. */
+ /* VM space had to be leaked (undocumented). Normally 0. */
+ atomic_zu_t abandoned_vm;
+
/* Number of bytes cached in tcache associated with this arena. */
atomic_zu_t tcache_bytes; /* Derived. */