4 ms·
The issue with backing all malloced memory with unused memory is that a lot of programs are written with a worst case assumption.
by nwmcsween 9y ago
The issue with backing all malloced memory with unused memory is that a lot of programs are written with a worst case assumption.
- srean 9y agoSort of a chicken and egg thing. If the API and behavior makes it easy to abuse, people will abuse it. It might have helped if there were two different library functions (i) malloc that gave you physically backed memory and (ii) another that just reserved some address space.