News for hackers. Stuff that matters.
Re:Linear Address Spaces: Unsafe at any speed by kllrnohj on Wednesday June 29, 2022 @10:22PM (#31928115)
Although you shouldn't be on a modern system, you'd instead be implementing malloc on top of mmap. So remove sbrk, and make mmap the "object allocator", and tada! You don't really need linear virtual address spaces anymore.
Re:Linear Address Spaces: Unsafe at any speed by gary_0 on Wednesday June 29, 2022 @10:56PM (#31928300)
Newer allocators like mimalloc[0] don't even support sbrk (I think jemalloc still does). Mimalloc seems to have some interesting features.

[0] https://github.com/microsoft/mimalloc

Re:Linear Address Spaces: Unsafe at any speed by hiker on Thursday June 30, 2022 @04:04AM (#31929864)
It still supports sbrk since it's available on WebAssembly but mmap is not.

https://webassembly.org/docs/faq/#what-about-mmap

Re:Linear Address Spaces: Unsafe at any speed by trasz on Thursday June 30, 2022 @09:53AM (#31932360)
Newer kernels like arm64 FreeBSD don't even support sbrk(2).