Closed GoogleCodeExporter closed 9 years ago
Yes, you can set the envvar TCMALLOC_LARGE_ALLOC_REPORT_THRESHOLD to some huge
value to disable this.
Original comment by csilv...@gmail.com
on 29 Jul 2011 at 9:19
That works well but if we are distributing a binary then it should be modifying
the environment?
Original comment by nilsho...@gmail.com
on 29 Jul 2011 at 10:51
You can call setenv() from within your binary -- at main() or whatever. If you
wanted to be super-polite, you could check that the envvar isn't already set,
and only set it if so. (I agree there are cleaner ways to do this than via
envvars, but I don't think there's any rule that you shouldn't modify the
environment. Any mods you make will only affect your binary anyway.)
Original comment by csilv...@gmail.com
on 29 Jul 2011 at 10:58
Please reconsider.
It's not possible influence this by "call setenv() from within your binary --
at main()" since at that point the static initializer that reads
TCMALLOC_LARGE_ALLOC_REPORT_THRESHOLD has already run.
Original comment by hakan.hj...@gmail.com
on 13 Aug 2012 at 5:12
Original issue reported on code.google.com by
nilsho...@gmail.com
on 29 Jul 2011 at 7:43