4 ms·
https://www.hboehm.info/gc/ https://www.hboehm.info/gc/ is a windows+linux+unix allocator implementation - it uses VirtualAlloc on Windows and mmap or sbrk on U
by Thoreandan 4y ago
https://www.hboehm.info/gc/ 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.
- Dwedit 4y agoOn Windows, most malloc calls are the Win32 API function HeapAlloc.