News for hackers. Stuff that matters.
Re:The lost malloc() by fjfaase on Wednesday November 04, 2026 @06:41AM (#50364253)
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.
Re:The lost malloc() by cowlevel on Wednesday November 04, 2026 @09:04PM (#50374174)
sbrk has been obsolete for almost three decades. mmap is almost always the way memory is allocated from the kernel.