3 ms·
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 un
by richardwhiuk 11y ago
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.