How is dynamic memory allocation handled when extreme reliability is required?

Posted by sharptooth on Stack Overflow See other posts from Stack Overflow or by sharptooth
Published on 2010-03-16T06:42:19Z Indexed on 2010/03/16 6:46 UTC
Read the original article Hit count: 379

Looks like dynamic memory allocation without garbage collection is a way to disaster. Dangling pointers there, memory leaks here. Very easy to plant an error that is sometimes hard to find and that has severe consequences.

How are these problems addressed when mission-critical programs are written? I mean if I write a program that controls a spaceship like Voyager 1 that has to run for years and leave a smallest leak that leak can accumulate and halt the program sooner or later and when that happens it translates into epic fail.

How is dynamic memory allocation handled when a program needs to be extremely reliable?

© Stack Overflow or respective owner

Related posts about language-agnostic

Related posts about memory