From 329f3e727ee9a3ab5fd27bba7f2fc08c4c620d7b Mon Sep 17 00:00:00 2001 From: "timurrrr@chromium.org" Date: Wed, 21 Oct 2009 08:10:29 +0000 Subject: Add the support for tcmalloc's heap leak checker. The heap checker will be linked with libtcmalloc by default. This patch was prepared by Alexander Potapenko (cc'ed) and originally reviewed as http://codereview.chromium.org/307005 TBR=evan,bradn (already LGTMed at http://codereview.chromium.org/307005) Review URL: http://codereview.chromium.org/292043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29625 0039d316-1c4b-4281-b951-d872f2087c98 --- third_party/tcmalloc/tcmalloc.gyp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'third_party/tcmalloc') diff --git a/third_party/tcmalloc/tcmalloc.gyp b/third_party/tcmalloc/tcmalloc.gyp index 5cb7f2e..f644910 100644 --- a/third_party/tcmalloc/tcmalloc.gyp +++ b/third_party/tcmalloc/tcmalloc.gyp @@ -237,6 +237,8 @@ # Don't let linker rip this symbol out, otherwise the heap&cpu # profilers will not initialize properly on startup. '-Wl,-uIsHeapProfilerRunning,-uProfilerStart', + # Do the same for heap leak checker. + '-Wl,-u_Z21InitialMallocHook_NewPKvj,-u_Z22InitialMallocHook_MMapPKvS0_jiiix,-u_Z22InitialMallocHook_SbrkPKvi', ], }, }], -- cgit v1.1