This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Dybvig's Guardians etc.


Mikael Djurfeldt <mdj@nada.kth.se> writes:

> [...]
> we put
> the guardian in a C array of SCMs, `scm_life_guards', which behaves
> similar to `scm_weak_vectors'.  (The int `scm_n_life_guards' is reset
> in the beginning of the mark phase and the array is successively
> filled during it.)

Just looked at how scm_weak_vectors are handled.  It's nice and fast
and all, but isn't calling `realloc' during `scm_gc_mark' considered
harmful?

Not that I have a better idea...

> /mdj

mike.