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:

> Guardians are smobs with two fields in the malloc: `live' and
> `zombies'.  These are ordinary lists, just as in your
> implementation.

It would be better if these were FIFO's, like in Dybvig's paper.  So,
I'd suggest to replace them with `live_head', `live_tail' etc.

> On the other hand, if we want to be really neat, we should put
> `scm_marked_p' in gc.c

Since we want to be neat *and* efficient, we place the macro
SCM_MARKED_P in gc.h.  :)

/mdj