Objective-C 2.0 on FreeBSD; garbage collection, anyone?

perryh at pluto.rain.com perryh at pluto.rain.com
Fri Mar 12 08:12:33 UTC 2010

Scott Bennett <bennett at cs.niu.edu> wrote:
> If your program never frees any memory, then there is never
> any garbage to collect.

Last I knew, "garbage collection" refers to tracking down and
reclaiming allocated memory to which no valid references exist.

The particular example given here is sufficiently trivial not
to actually need GC -- it could easily free() before losing
the (only) reference -- but keeping track can become extremely
tricky in complex systems (hence the considerable effort that
has been expended in designing and implementing GC systems).

More information about the freebsd-questions mailing list