06-19-05 10:51 PM
"Zheng Da" <zhengda1936@gmail.com> writes:
> I want to know what malloc() do in Linux.
> Some books say malloc() will call brk() and mmap()
> I have tried to find the the source code of malloc() in glibc.
> But it seems the code I find in glibc is not for Linux, and it doesn't
> call brk() and mmap().
> Could any one give me the source code of malloc() for Linux?
It's in glibc and it does call both brk/sbrk and mmap.
--
Måns Rullgård
mru@inprovide.com
[ Post a follow-up to this message ]
|