[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Garbage collection
- From: Steve Dekorte <steve@...>
- Date: Wed, 30 Oct 2002 07:13:28 -0800
On Tuesday, October 29, 2002, at 09:22 AM, Russell Y. Webb wrote:
Personally, I think the best (and most Lua-like) solution is to make
the garbage collector completely modular with a published way to
redefine it with appropriate hooks (many of which can be empty) to
define most any scheme.
That might not be possible as some collectors require write and/or read
barriers(you need to tell them when a reference is added or read).
Putting in these barriers and leaving hooks to them would cost too much
in overhead. You could avoid the unused hook overhead with defines, but
still, you'd add a lot of complexity to the C bindings that likely
wouldn't be used.
OSX freeware and shareware: http://www.dekorte.com/downloads.html