This is one of the very popular misconception that people have. Lets make it clear that malloc() is not a system call. The function call malloc() is a library function call that further uses the brk() or sbrk() system call for memory allocation. 7. System calls : Switching execution m...
(2) - control the inheritance of pages mlock(2), munlock(2) - lock (unlock) physical pages in memory mprotect(2) - control the protection of pages msync(2) - synchronize a mapped region munmap(2) - remove a mapping brk(2), sbrk(2) - change data segment size madvise(2), posix_...
What was vour diagnosis?doi:10.1111/j.1748-5827.2001.tb02461.xJohn Wiley & Sons, LtdJournal of Small Animal Practice
Actually looks like all the mmap calls are invoked by malloc. I see loads of brk calls. Oh dear. Hmmm. Maybe I could write a simple mdb script which would break on every brk call, log details and continue. I don't know much about mmap or sbrk ... I think it's time to find ou...