• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

How long does "old" data remain in memory?

Special K

Diamond Member
Does RAM hold the contents of one program until another requests to use that memory? For example, if I start playing a game that uses 200MB of RAM, then close it, does that region of memory that the game was using still contain all the data that the game loaded there, until I lauch a new program that could then overwrite that region of memory with its own data? One of the reasons I ask is that I read about uninitialized pointers and "garbage" data, and I just wondered where the values of these things actually came from.
 
No OS explicitely zeros all memory on (de)allocation because it would be terribly slow. Infact most OSes don't even really allocated the memory until you try to use it.

So yes, you've got the idea.
 
Back
Top