3 ms·
malloc is implemented using mmap. You map memory manually when you need very low level control over memory.
by 29athrowaway 6y ago
malloc is implemented using mmap.
You map memory manually when you need very low level control over memory.
- jeffbee 6y ago`malloc` is not one thing. Some mallocs use mmap and others use brk. Some implementations use both.
- kevin_thibedeau 6y agoSome use neither.