]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Teach Massif about the 'nothrow' versions of new and new[].
authorNicholas Nethercote <n.nethercote@gmail.com>
Tue, 11 May 2004 09:21:08 +0000 (09:21 +0000)
committerNicholas Nethercote <n.nethercote@gmail.com>
Tue, 11 May 2004 09:21:08 +0000 (09:21 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2396

massif/ms_main.c

index d02b4859b6afd24ee052e2857b3a0e917327b3f1..f149ca50daa38cc788a4ad098e62a1790bd68382 100644 (file)
@@ -253,12 +253,14 @@ static UInt n_heap_blocks = 0;
 
 #define MAX_ALLOC_FNS      32      // includes the builtin ones
 
-// First six filled in, rest should be zeroed.  argc/argv-style vector.
-static UInt  n_alloc_fns = 9;
+// First few filled in, rest should be zeroed.  Zero-terminated vector.
+static UInt  n_alloc_fns = 11;
 static Char* alloc_fns[MAX_ALLOC_FNS] = { 
    "malloc",
    "operator new(unsigned)",
    "operator new[](unsigned)",
+   "operator new(unsigned, std::nothrow_t const&)"
+   "operator new[](unsigned, std::nothrow_t const&)"
    "__builtin_new",
    "__builtin_vec_new",
    "calloc",