|
Boost : |
Subject: Re: [boost] tcmalloc and boost::diagnostic_information
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2010-06-14 04:55:15
On 06/14/2010 08:04 AM, Steven Watanabe wrote:
> AMDG
>
>> Has anyone here seen this problem? I do not know whether this is a bug
>> with tcmalloc or boost, but I would really like to use tcmalloc
>> because it gives me a 10-50% performance increase when I am not
>> throwing exceptions.
>
> I think __cxa_demangle is using glibc's malloc implementation,
> but free is calling tcmalloc. I have no idea how to make
> __cxa_demangle work with tcmalloc.
If you link with tcmalloc, you can check ldd output to verify that
tcmalloc is the very first library in the list. If it's not, try moving
it to the beginning of the linker command line.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk