News for hackers. Stuff that matters.
Re:Can I use a system call? by Thoreandan on Wednesday September 21, 2022 @07:26PM (#32932969)
https://www.hboehm.info/gc/ is a windows+linux+unix allocator implementation - it uses VirtualAlloc on Windows and mmap or sbrk on Unix.

For performance reasons (avoiding a syscall) almost all malloc implementations only use sbrk / mmap occasionally and keep the malloc calls in userspace.

Re:Can I use a system call? by Dwedit on Wednesday September 21, 2022 @09:44PM (#32933922)
On Windows, most malloc calls are the Win32 API function HeapAlloc.