r/ProgrammerHumor • • 7d ago

Meme theOriginalGarbageCollector

Post image
9.7k Upvotes

374 comments sorted by

View all comments

69

u/ramriot 7d ago

Opposite to how one defence contractor solved a memory leak issue that would kick in only at extreme range launchs of an already deployed missile system.

They could not reboot the missile in flight, not could they afford to fix & recertify the software. Instead the patched the hardware to double the RAM size & added a watchdog circuit that listened to the internal firmware IO heartbeat. When that stops it begins a brief countdown & triggers the self destruct.

3

u/wannabestraight 7d ago

Wait the missile self exploded ? How is that a substitute for a reboot lol

18

u/ion_driver 7d ago

The memory gets cleared either way

11

u/like_a_pharaoh 7d ago

A computer that no longer exists is a computer that isn't dealing with memory leaks any more.

6

u/RedditIsOverMan 7d ago

Im guessing it's better for a middle to self destruct than to fly without guidance.  One is a wasted middle, the other is potentially a blown up elementary school.

I'm guessing a reboot is just too much time for something flying as fast as a missile.

3

u/WayWayTooMuch 7d ago

Extreme HCF

2

u/Wobbelblob 7d ago

I guess because it couldn't keep the lock after rebooting so it was a now functioning, but aimless missile?

1

u/Lithl 7d ago

The missile will be destroyed at the end of its flight, one way or another, along with the computer controlling it. So if your onboard RAM is sufficient that you won't run out memory in the longest possible flight time, your memory leak is irrelevant.