What steps will reproduce the problem?
1. export TCMALLOC_MAX_TOTAL_THREAD_CACHE_BYTES=1000000000
2. run program A with -ltcmalloc
3. check memory used by program A
ps: A is a multithread program(with 80+ threads) which alloc/free memory repeatedly
What is the expected output?
program A eat 1G memory
What do you see instead?
program A eat 32M
From the upstream bug:
What steps will reproduce the problem? MAX_TOTAL_ THREAD_ CACHE_BYTES= 1000000000
1. export TCMALLOC_
2. run program A with -ltcmalloc
3. check memory used by program A
ps: A is a multithread program(with 80+ threads) which alloc/free memory repeatedly
What is the expected output?
program A eat 1G memory
What do you see instead?
program A eat 32M