Hacker News
points by fjfaase 4 days ago | 0 comments
The sbrk system call in linux is still available to get more heap from the operating system. So, memory is still allocated in a linear fasion and never released again. Maybe now functions like mmap change this. I used sbrk to implement malloc for a very limited standard libary implementation.
[–] cowlevel 3 days ago
sbrk has been obsolete for almost three decades. mmap is almost always the way memory is allocated from the kernel.
Hacker News