This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
Re: gc suggestions
- To: Dirk Herrmann <dirk at ida dot ing dot tu-bs dot de>
- Subject: Re: gc suggestions
- From: Michael Livshin <mlivshin at bigfoot dot com>
- Date: 27 Jun 2000 16:43:34 +0200
- Cc: Guile Mailing List <guile at sourceware dot cygnus dot com>
- Organization: who? me?
- References: <Pine.LNX.4.21.0006271605010.23334-100000@marvin.ida.ing.tu-bs.de>
Dirk Herrmann <dirk@ida.ing.tu-bs.de> writes:
> After thinking a little bit about it I believe that it should even
> be possible to work around it: With cell access debugging in effect,
> the scm_gc_async is simply not activated after _every_ gc, but, say,
> after every 10000th gc or so. This has the effect of 'simulating' a
> certain gc frequency for the scheme level, although the actual gc
> frequency is totally different.
what is the problem this solves, again? (an answer along the lines of
"don't be daft, read the previous mails" is perfectly fine).
> When looking at the current names, I think we should just use the existing
> hooks scm_before/after_gc_c_hook and should think of new names for the
> wrappers around the whole thing, like:
> scm_before_potential_gc_c_hook;
> if actual_gc {
> scm_before_gc_c_hook
> ...
> scm_after_gc_c_hook
> activate after-gc-hook async
> }
> scm_after_potential_gc_c_hook;
>
> This should give us the necessary amount of control, while still being
> clean and symmetrical. I will prepare a patch for it.
cool. (you might as well check it in ;).
--
I think we might have been better off with a slide rule.
-- Zaphod Beeblebrox