Why this tcmalloc error SbrkSysAllocator failed happen?

914 Views Asked by At

I am using tcmalloc_minimal of google-perftools as the default memory allocater in my c++ program. It print out this infomation:

src/system-alloc.cc:427] SbrkSysAllocator failed 

And the program goes on running. Does it matter?

1

There are 1 best solutions below

0
On

By default tcmalloc takes memory from kernel using sbrk. sbrk call may be failed in case of colliding memory mapping, and then tcmalloc fallbacks to pure mmap. This is the moment when the message is generated.

There is nothing to worry about (as long as you do not run out of address space).