From 992242c545cdd9e6098d16e3426fce1844b0e292 Mon Sep 17 00:00:00 2001 From: Jason Evans Date: Sun, 14 Mar 2010 19:55:32 -0700 Subject: [PATCH] Change xmallctl() --> CTL_GET() where possible. --- jemalloc/src/stats.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jemalloc/src/stats.c b/jemalloc/src/stats.c index dcd93f1c..43d5b5b2 100644 --- a/jemalloc/src/stats.c +++ b/jemalloc/src/stats.c @@ -580,19 +580,19 @@ stats_print(void (*write_cb)(void *, const char *), void *cbopaque, } if ((err = JEMALLOC_P(mallctl)("opt.prof", &bv, &bsz, NULL, 0)) == 0 && bv) { - xmallctl("opt.lg_prof_bt_max", &sv, &ssz, NULL, 0); + CTL_GET("opt.lg_prof_bt_max", &sv, size_t); write_cb(cbopaque, "Maximum profile backtrace depth: "); write_cb(cbopaque, umax2s((1U << sv), 10, s)); write_cb(cbopaque, "\n"); - xmallctl("opt.lg_prof_sample", &sv, &ssz, NULL, 0); + CTL_GET("opt.lg_prof_sample", &sv, size_t); write_cb(cbopaque, "Average profile sample interval: "); write_cb(cbopaque, umax2s((1U << sv), 10, s)); write_cb(cbopaque, " (2^"); write_cb(cbopaque, umax2s(sv, 10, s)); write_cb(cbopaque, ")\n"); - xmallctl("opt.lg_prof_interval", &sv, &ssz, NULL, 0); + CTL_GET("opt.lg_prof_interval", &sv, size_t); write_cb(cbopaque, "Average profile dump interval: "); write_cb(cbopaque, umax2s((1U << sv), 10, s)); write_cb(cbopaque, " (2^");