Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Mar 2010 00:05:34 -0800
From:      perryh@pluto.rain.com
To:        bennett@cs.niu.edu
Cc:        nlandys@gmail.com, freebsd-questions@freebsd.org, alex@stangl.us
Subject:   Re: Objective-C 2.0 on FreeBSD; garbage collection, anyone?
Message-ID:  <4b99f5ce.OOF9VDO0wXySaf5v%perryh@pluto.rain.com>
In-Reply-To: <201003120558.o2C5welE022368@mp.cs.niu.edu>
References:  <201003120558.o2C5welE022368@mp.cs.niu.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
Scott Bennett <bennett@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).



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4b99f5ce.OOF9VDO0wXySaf5v%perryh>