Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Freeing

Name: Anonymous 2008-12-29 1:26

Is there any real point in freeing memory these days? And I don't mean freeing memory for things that constantly grow and shrink in size. I mean freeing that one array that you malloc at the beginning of the program and you need it until the end of the program. What is the benefit of freeing it when it will be automatically freed by the operating system?

Name: Anonymous 2008-12-29 15:17

>>11
There is no need to assign a new page frame filled with zeros to the process right away, because we might as well give it an existing page called zero page , thus deferring further page frame allocation.
I'm calling bullshit on this. The kernel gives a page frame filled with zeros to all processes? Then what happens if one of them writes to it?
tl;dr Linux is insecure, use BSD.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List