From 3dc4e83ccb448436894fbbd0b46f126cff0c1416 Mon Sep 17 00:00:00 2001 From: Jason Evans Date: Tue, 3 Jan 2017 07:27:42 -0800 Subject: Add MALLCTL_ARENAS_ALL. Add the MALLCTL_ARENAS_ALL cpp macro as a fixed index for use in accessing the arena..{purge,decay,dss} and stats.arenas..* mallctls, and deprecate access via the arenas.narenas index (to be removed in 6.0.0). --- src/stats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/stats.c') diff --git a/src/stats.c b/src/stats.c index 0a3deaaa..ad7d7ba4 100644 --- a/src/stats.c +++ b/src/stats.c @@ -841,7 +841,7 @@ stats_print_helper(void (*write_cb)(void *, const char *), void *cbopaque, "\nMerged arenas stats:\n"); } stats_arena_print(write_cb, cbopaque, json, - narenas, bins, large); + MALLCTL_ARENAS_ALL, bins, large); if (json) { malloc_cprintf(write_cb, cbopaque, "\t\t\t}%s\n", (ninitialized > 1) ? -- cgit v1.2.3