]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
- The default value for --leak-check-heuristics has been changed from
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Wed, 2 Sep 2015 21:57:53 +0000 (21:57 +0000)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Wed, 2 Sep 2015 21:57:53 +0000 (21:57 +0000)
  "none" to "all". This helps to reduce the number of possibly
  lost blocks, in particular for C++ applications.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15618

NEWS
memcheck/docs/mc-manual.xml
memcheck/mc_include.h
memcheck/mc_main.c

diff --git a/NEWS b/NEWS
index ea3fa2f0708e21fbc3bf4a8d46bb4e96edb3f133..7699b4578402a196e33db0deb9ad55d20dae2f8f 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -32,6 +32,9 @@ X86/MacOSX 10.10 and 10.11 and AMD64/MacOSX 10.10 and 10.11.
 * ==================== TOOL CHANGES ====================
 
 * Memcheck:
+  - The default value for --leak-check-heuristics has been changed from
+    "none" to "all". This helps to reduce the number of possibly
+    lost blocks, in particular for C++ applications.
 
   - The default value for --keep-stacktraces has been changed from
     "malloc-then-free" to "malloc-and-free".  This has a small cost in
index 39c032b79d3824a5145c861fa9565d204de65bda..b54b721a4354c5a4b3f08a9a4b61ea882337a1f8 100644 (file)
@@ -811,7 +811,7 @@ is <option>--errors-for-leak-kinds=definite,possible</option>
 
   <varlistentry id="opt.leak-check-heuristics" xreflabel="--leak-check-heuristics">
     <term>
-      <option><![CDATA[--leak-check-heuristics=<set> [default: none] ]]></option>
+      <option><![CDATA[--leak-check-heuristics=<set> [default: all] ]]></option>
     </term>
     <listitem>
       <para>Specifies the set of leak check heuristics to be used
index 3aeceb56476f67e9ff207a8cb916219d344d2fe1..663cdcaa9a62174c558577ef439e9149128ae84f 100644 (file)
@@ -642,7 +642,7 @@ typedef
 #define HiS(h,s) ((s) & H2S(h))
 
 /* Heuristics set to use for the leak search.
-   Default : no heuristic. */
+   Default : all heuristics. */
 extern UInt MC_(clo_leak_check_heuristics);
 
 /* Assume accesses immediately below %esp are due to gcc-2.96 bugs.
index 838a2966295f7ed0e425f76c69ca0c5b0aafc385..65fdfcb0ddad3cec2e164256e3c44efcb615d323 100644 (file)
@@ -5699,7 +5699,10 @@ LeakCheckMode MC_(clo_leak_check)             = LC_Summary;
 VgRes         MC_(clo_leak_resolution)        = Vg_HighRes;
 UInt          MC_(clo_show_leak_kinds)        = R2S(Possible) | R2S(Unreached);
 UInt          MC_(clo_error_for_leak_kinds)   = R2S(Possible) | R2S(Unreached);
-UInt          MC_(clo_leak_check_heuristics)  = 0;
+UInt          MC_(clo_leak_check_heuristics)  =   H2S(LchStdString)
+                                                | H2S( LchLength64)
+                                                | H2S( LchNewArray)
+                                                | H2S( LchMultipleInheritance);
 Bool          MC_(clo_workaround_gcc296_bugs) = False;
 Int           MC_(clo_malloc_fill)            = -1;
 Int           MC_(clo_free_fill)              = -1;
@@ -5879,7 +5882,7 @@ static void mc_print_usage(void)
 "        where kind is one of:\n"
 "          definite indirect possible reachable all none\n"
 "    --leak-check-heuristics=heur1,heur2,... which heuristics to use for\n"
-"        improving leak search false positive [none]\n"
+"        improving leak search false positive [all]\n"
 "        where heur is one of:\n"
 "          stdstring length64 newarray multipleinheritance all none\n"
 "    --show-reachable=yes             same as --show-leak-kinds=all\n"