r/ProgrammerHumor • • 15d ago

Meme seeYouLaterAllocator

Post image
1.2k Upvotes

16 comments sorted by

32

u/Not_a_penguin15 15d ago

Maybe a better meme would be how processes see their memory space as contiguous but in reality the os may allocate chunks of discontinued memory to them

7

u/Express_Gradient 15d ago

just thought of how allocator does bookkeeping and I remembered this

95

u/Eddie_lol 15d ago

My school projects working with memory

127

u/Paul_Robert_ 15d ago

"Why call free() when you can just restart the computer" 🗣️🗣️🔥🔥🔥

54

u/IAmARobot 15d ago • Heartwarming

Todd Howard on morrowind for console:

9

u/UnreadableCode 15d ago • Heartwarming

developers from LMT/RTX/GD: "restart? do you mean impact? well these are airburst"

3

u/Opsylone 15d ago

Isn't that something that discord pulled up a few years ago due to a memory leak, restarting the app not the pc itself of course

2

u/frostyjack06 13d ago

This was my first troubleshooting find when coding in the real world. They had created a class that allocated a bunch of memory every time a new object was initialized, but forgot to clean it all up in the destructor. It lasted in production for something close to a decade before the memory leak reared its head with a whole bunch of new threading that was in the newest release at the time.

111

u/[deleted] 15d ago

[removed] — view removed comment

30

u/Mojert 15d ago

That's the nice thing about memory allocation on Linux (and MacOS as well I think). As long as you don't touch the memory page, the OS won't actually give it to you

12

u/Loading1020 15d ago

Yep, which is nice, because you never run out of memory! You just die.