3 ms·
That doesn't contain calls to sbrk at all, it maps memory in with mmap which is typical of every modern memory allocator.
by CyberDildonics 6y ago
That doesn't contain calls to sbrk at all, it maps memory in with mmap which is typical of every modern memory allocator.
- cnity 6y agoYou're right, I misinterpreted the calls to __brk
- quantumofalpha 6y agoIt uses both brk/sbrk ("__brk()" in that code) and mmap, the latter for allocating larger bits of memory. GNU libc does the same thing from what I remember from straces.