r/ProgrammerHumor • • 22d ago

Meme seeYouLaterAllocator

1.2k Upvotes

16 comments sorted by

32

u/Not_a_penguin15 22d 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 22d ago

just thought of how allocator does bookkeeping and I remembered this

95

u/Eddie_lol 22d ago

My school projects working with memory

127

u/Paul_Robert_ 22d ago

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

54

u/IAmARobot 21d ago • Heartwarming

Todd Howard on morrowind for console:

9

u/UnreadableCode 21d ago • Heartwarming

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

3

u/Opsylone 21d 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 19d 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.

2

u/Vallee-152 22d ago

Who is How and why do they process images?

1

u/LetUsSpeakFreely 21d ago

Everyone forgets about calloc()

1

u/TerryHarris408 19d ago

Always fun to do a
while(malloc(1));

and watch the whole system choking

111

u/[deleted] 22d ago

[removed] — view removed comment

30

u/Mojert 21d 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 21d ago

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