It's not malloc() but mmap() if I understand correctly.
It's a beautifully powerful function :)
It's a beautifully powerful function :)
(Some allocators, like glibc may also use brk, but it's possible to write a fully functional allocator with only mmap).