Merge branch 'leak-detective-dlsym'
authorMartin Willi <martin@revosec.ch>
Mon, 6 May 2013 13:15:58 +0000 (15:15 +0200)
committerMartin Willi <martin@revosec.ch>
Mon, 6 May 2013 13:15:58 +0000 (15:15 +0200)
commitb4e9f74e428ab0f3026df4175d133b81b16c9d56
treeacb573f1c6a716a1b0fc330b1f21dc3413a4421e
parente9b3bd54346d78343f74878c799dd11fd2e2276a
parent40f2a5306aff2c43065778b378b127e61ecb76cd
Merge branch 'leak-detective-dlsym'

Replaces the use of deprecated glibc malloc hooks by overloading malloc calls
and find the originals using dlsym(RTLD_NEXT).

On OS X, we now support the use of leak detective by changing the default
malloc zone functions, backtraces get resolved using atos.

It seems that the performance bottleneck now is stack unwinding. Unfortunately
a new libunwind based backtrace() is not much faster than the libc variant; we
keep that option nonetheless for platforms without backtrace().