5 ms·
> You can't simply nil the reference and expect GC to come through and clean it for you This is exactly what happens when your process exits and its private me
by robotresearcher 12y ago
> You can't simply nil the reference and expect GC to come through and clean it for you
This is exactly what happens when your process exits and its private memory space is freed in its entirety. Hence the discussion. There's no need to clean up before exit, except if you want to (i) use a leak checker; or (ii) run on a machine with no MMU.
- jschwartzi 12y agoIt's funny that ii is even an issue because Linux does not support platforms without MMUs without some serious modifications.
- unwind 12y agoBut the program being discussed is (of course) GNU cp. That program is not in any way designed for, limited to, or intended only for, use in Linux. So what Linux supports and doesn't support in terms of memory management really has no bearing on what GNU cp can or cannot do, in general.