mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-24 16:13:38 +03:00
Fix P/p reporting in stats_print().
Now that JEMALLOC_OPTIONS=P isn't the only way to cause stats_print() to be called, opt_stats_print must actually be checked when reporting the state of the P/p option.
This commit is contained in:
parent
3395860921
commit
68f91893bd
1 changed files with 3 additions and 1 deletions
|
|
@ -466,7 +466,9 @@ stats_print(void (*write_cb)(void *, const char *), void *cbopaque,
|
||||||
if ((err = JEMALLOC_P(mallctl)("opt.overcommit", &bv, &bsz,
|
if ((err = JEMALLOC_P(mallctl)("opt.overcommit", &bv, &bsz,
|
||||||
NULL, 0)) == 0)
|
NULL, 0)) == 0)
|
||||||
write_cb(cbopaque, bv ? "O" : "o");
|
write_cb(cbopaque, bv ? "O" : "o");
|
||||||
write_cb(cbopaque, "P");
|
if ((err = JEMALLOC_P(mallctl)("opt.stats_print", &bv, &bsz,
|
||||||
|
NULL, 0)) == 0)
|
||||||
|
write_cb(cbopaque, bv ? "P" : "p");
|
||||||
if ((err = JEMALLOC_P(mallctl)("opt.prof_udump", &bv, &bsz,
|
if ((err = JEMALLOC_P(mallctl)("opt.prof_udump", &bv, &bsz,
|
||||||
NULL, 0)) == 0)
|
NULL, 0)) == 0)
|
||||||
write_cb(cbopaque, bv ? "U" : "u");
|
write_cb(cbopaque, bv ? "U" : "u");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue