From 3b3257a7092f447fa6c9a3a7305cb346dfb37841 Mon Sep 17 00:00:00 2001 From: Alex Lapenkou Date: Mon, 22 Nov 2021 18:42:05 -0800 Subject: [PATCH] Correct opt.prof_leak documentation The option has been misleading, because it stays disabled unless prof_final is also specified. In practice it's impossible to detect that the option is silently disabled, because it just doesn't provide any output as if there are no memory leaks detected. --- doc/jemalloc.xml.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/jemalloc.xml.in b/doc/jemalloc.xml.in index b8b96abe..cba0b3f6 100644 --- a/doc/jemalloc.xml.in +++ b/doc/jemalloc.xml.in @@ -1547,8 +1547,10 @@ malloc_conf = "xmalloc:true";]]> 3 function to report memory leaks detected by allocation sampling. See the opt.prof option for - information on analyzing heap profile output. This option is disabled - by default. + information on analyzing heap profile output. Works only when combined + with opt.prof_final + , otherwise does nothing. This option is disabled by default. +