Re:Podman: A Daemonless Container Engine
by Cyph0n on Thursday February 11, 2021 @11:04PM
(#26110625)
If basically everything stays on the stack, you’ll have a much lower chance of seeing a memory leak, by definition.
Re:Podman: A Daemonless Container Engine
by CivBase on Friday February 12, 2021 @01:28PM
(#26116809)
Exactly. Using C/C++ doesn't have to mean using the heap.
Re:Podman: A Daemonless Container Engine
by eptcyka on Saturday February 13, 2021 @04:16AM
(#26122457)
Using the heap has nothing to do with the code being safe or unsafe.
Re:Podman: A Daemonless Container Engine
by tshtf on Thursday February 11, 2021 @02:14PM
(#26105822)
All I'm saying is that it's a trivial oversimplification to say you can learn to miss every time.
I work on avionics and we use C/C++ now and then. We have a ton of rules regarding memory management (pretty much everything stays on the stack) and I can't recall anything I've ever been involved with suffering from a memory leak.