Teach Massif about the 'nothrow' versions of new and new[].
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2396 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/massif/ms_main.c b/massif/ms_main.c
index d02b485..f149ca5 100644
--- a/massif/ms_main.c
+++ b/massif/ms_main.c
@@ -253,12 +253,14 @@
#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",