Scott Bennett <benn...@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).
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to