4 ms·
In those days malloc would use sbrk to allocate memory. And yes, mmap was designed to memory map files. Using it to allocate anonymous pages came later.
by pdw 1y ago
In those days malloc would use sbrk to allocate memory. And yes, mmap was designed to memory map files. Using it to allocate anonymous pages came later.
- mort96 1y agoOh, I had never even heard of those syscalls before! Thanks, that makes sense.