|
From: Nicholas N. <nj...@ca...> - 2004-05-11 09:21:14
|
CVS commit by nethercote:
Teach Massif about the 'nothrow' versions of new and new[].
M +4 -2 ms_main.c 1.8
--- valgrind/massif/ms_main.c #1.7:1.8
@@ -254,10 +254,12 @@ 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",
|