Hacker News new | ask | show | jobs
by 29athrowaway 1979 days ago
malloc is implemented using mmap.

You map memory manually when you need very low level control over memory.

1 comments

`malloc` is not one thing. Some mallocs use mmap and others use brk. Some implementations use both.
Some use neither.