This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
Re: is there a gc hook?
- To: Russell McManus <russell dot mcmanus at msdw dot com>
- Subject: Re: is there a gc hook?
- From: "Greg J. Badros" <gjb at cs dot washington dot edu>
- Date: 26 Jan 2000 13:07:47 -0800
- Cc: guile at sourceware dot cygnus dot com
- References: <200001262001.PAA26687@hqsmh3.ms.com>
Russell McManus <russell.mcmanus@msdw.com> writes:
> Is there a way for me to time gc runs and print out the results?
> I've got some performance issues I've got to track down, and I didn't
> see anything obvious in the source code.
We've talked about adding C-level gc hooks to register a single C
function to be called at start of GC and another at end of GC. Those
functions would have to carefully not allocate a cell or otherwise mess
with the Scheme heap, or else undefined behaviour. I'd certainly be
happy with (the fairly straightforward) patch to support this, and will
do it if no-one else submits something, and others agree that it'd be a
useful feature to have.
Greg