Re:What is “the stack”?
by richardwhiuk on Thursday March 03, 2016 @07:49AM
(#11216503)
malloc almost certainly isn't a system call. It's a library call (provided by libc), and you can have different malloc functions (different allocators).
The underlying OS call is VirtualAlloc on Windows and brk/sbrk/mmap on Linux.
The underlying OS call is VirtualAlloc on Windows and brk/sbrk/mmap on Linux.