Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

12
  • 3
    Can you name a modern OS that has property 1? Windows NT does clear the memory before handing it out again. Property 2 requires admin privs, so you should not worry about other processes doing this, but about data remaining on the disk after the program terminates or the system restarts. Commented Sep 18, 2012 at 8:40
  • 1
    I know attributes of Java objects are cleaned / initialized at instantiation time. But what after memory release / JVM termination. Will there be a cleanup? Commented Sep 18, 2012 at 8:53
  • 1
    @user573215 - I don't believe so. No. Commented Sep 18, 2012 at 9:27
  • 3
    malloc might reuse memory used by the same process earlier without clearing it. But an OS reusing uncleared memory across processes seems very dumb. Commented Sep 18, 2012 at 10:02
  • 3
    The link talks about kernel memory. Memory allocations of usermode processes are something different entirely. Commented Sep 18, 2012 at 11:17