3 ms·
You can write a malloc that performs no system calls and hands out chunks of the data segment you’ve set aside (e.g. by creating a large array in your program).
by saagarjha 7y ago
You can write a malloc that performs no system calls and hands out chunks of the data segment you’ve set aside (e.g. by creating a large array in your program). But I think it’s clear in context that the question is talking about one of the standard Linux memory allocators, probably Glibc’s, which will brk/mmap from the OS and hand that out.