Re:Writing a Memory Allocator (2019)
by DmitrySoshnikov on Sunday December 13, 2020 @04:04PM
(#25410266)
sbrk is emulated via mmap today on MacOS and others, this is an abstraction (for bump allocation), not just a function
you may implement custom sbrk via mmap easily
Using an anonymous map provides address space randomization by default (for the raw pool location), whereas brk/sbrk extends a limit and because of this are predictable.