Closed GoogleCodeExporter closed 9 years ago
Wow, good thinking!
It's not technically a bug to dlopen a malloc replacement -- if you're careful
with
memory management, you can make sure to dlclose it at the right time so
everything is
freed with the same allocator it was alloced with -- but it's so fragile, I'm
happy
to disallow it. The performance win is definitely worth it. I'll put this in
the
next release.
Original comment by csilv...@gmail.com
on 15 Oct 2008 at 8:08
This patch is in perftools 1.0rc1.
However, I was made aware of a bug involving TLS with -fPIC libraries in many
versions of gcc (see http://gcc.gnu.org/ml/gcc-bugs/2006-09/msg02275.html).
Because
of this, I now turn on TLS much more selectively than in the past. So this
patch may
not be as widely useful as one might hope! Things will get better as distros
move to
newer versions of gcc, though.
Original comment by csilv...@gmail.com
on 13 Dec 2008 at 1:45
Original issue reported on code.google.com by
anton.bl...@gmail.com
on 15 Oct 2008 at 9:24Attachments: