2 ms·
Yea, sbrk makes sense in a flat address space. I don't think it makes as much sense with virtual memory.
by duaneb 11y ago
Yea, sbrk makes sense in a flat address space. I don't think it makes as much sense with virtual memory.
- gull 11y agoA flat address space is the future. You don't need virtual memory when a flat address space can hold all memory addresses for all processes as it does now with 64-bit processors.
- duaneb 11y agoVirtual memory isn't just for giving each process enough space. It's for security reasons, too.
- deleted 11y ago[deleted]
- oso2k 11y agoCould you explain how virtual memory makes a process more secure? My intuition is that it would be another source of contention to manage (like CPU, RAM, IO, etc). Maybe you're considering non-sequential address space an improvement for security. That I could see. ASLR would be another, which, you can see the effect of by multiple runs of t/_end.exe in rt0.