3 ms·
I wonder what would happen if you just keep on allocating and never free anything. The system would eventually swap out everything that should be freed. A 64
by hyperman1 8y ago
I wonder what would happen if you just keep on allocating and never free anything. The system would eventually swap out everything that should be freed. A 64-bit process has plenty of address space, and hard disks are huge.
Of course, there is probably some huge painfull punishment in store if you try this in real life. I just wonder which. Your average GUI process that shuts down every day or so maybe wouldn't suffer too much.
- cryptonector 8y agoFragmentation will mean that a very much larger number of pages than is needed to store the heap will be frequently referenced, thus thrashing. Even with SSDs thrashing would be too painful.