Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: