6 ms·
OS kernels tend to use them simply because they don't have malloc at their disposal and so it's most practical to stick to fixed size memory chunks, right?
by mac01021 4y ago
OS kernels tend to use them simply because they don't have malloc at their disposal and so it's most practical to stick to fixed size memory chunks, right?
- scaramanga 4y agoLinux kernel's malloc is probably more resilient to the long-term (as in, long running) problems you would get from continually resizing an array with realloc in userspace (ie. massive heap fragmentation and eventually dying in flames)