r/ProgrammerHumor • • Oct 22 '26

instanceof Trend itsBadIfItsOnlyPHP

Post image
4.5k Upvotes

335 comments sorted by

View all comments

Show parent comment

1

u/derefr Oct 23 '26 edited Oct 23 '26

Leaks are safe though.

I mean, not if your program is required to run in constant memory they're not. Or in bounded memory without swap/overcommit, e.g. running on bare metal on a microcontroller.

(Or, just to make up a scenario, if there's a certain system configured such that the OOM killer is free to choose a process to kill at random [i.e. the default OOM-killer policy]; and there's also some process on that system responsible for either your application- or machine-level security; and whatever layer of protection that process adds is simply bypassed if that process dies...)