diff options
author | Jason Evans <jasone@canonware.com> | 2010-03-15 02:55:32 (GMT) |
---|---|---|
committer | Jason Evans <jasone@canonware.com> | 2010-03-15 02:55:32 (GMT) |
commit | 992242c545cdd9e6098d16e3426fce1844b0e292 (patch) | |
tree | 755a3f74630278efa439e3dfe4744d73bbbb4cff | |
parent | 19b6a5537d24518e39049cdac60a19b175e9644c (diff) | |
download | jemalloc-992242c545cdd9e6098d16e3426fce1844b0e292.zip jemalloc-992242c545cdd9e6098d16e3426fce1844b0e292.tar.gz jemalloc-992242c545cdd9e6098d16e3426fce1844b0e292.tar.bz2 |
Change xmallctl() --> CTL_GET() where possible.
-rw-r--r-- | jemalloc/src/stats.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/jemalloc/src/stats.c b/jemalloc/src/stats.c index dcd93f1..43d5b5b 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^"); |