This is the mail archive of the
guile@sources.redhat.com
mailing list for the Guile project.
Re: programmed gc mark and free sweeps...
- To: "Lars J. Aas" <larsa at sim dot no>
- Subject: Re: programmed gc mark and free sweeps...
- From: Michael Livshin <mlivshin at bigfoot dot com>
- Date: 13 Sep 2000 14:53:32 +0300
- Cc: guile-user at gnu dot org
- List-Id: <guile-user.gnu.org>
- Organization: who? me?
- References: <20000913134355.A22078@sim.no>
"Lars J. Aas" <larsa@sim.no> writes:
> I've created some smobs which are hidden far into a subsystem of widgets,
> and I need to check that the correct ones are marked by the garbage
> collector.
> Is scm_gc_sweep() all I need to make Guile do the mark and sweep?
no, you need to call `scm_gc()' or `(gc)' from Scheme.
you can also call `(gc-set-debug-check-freelist! #t)', after which
every allocation will call GC. this might be too slow, but is very
thorough. you need to configure your Guile with
--enable-debug-freelist, and I'm not sure how widely it is used so it
might have bitrotted.
--
newsgroup volume is a measure of discontent. -- Erik Naggum
_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user