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: Something like vector-grow available?


Jost Boekemeier <jostobfe@calvados.zrz.TU-Berlin.DE> writes:

> Ahh, wait!
> 
> void
> scm_guardian_zombify ()
> {
> [...]
> 	  if (SCM_NMARKEDP (SCM_CAR (pair)))
>                   ^^^^^^^^
> 
> Does this mean the garbage collector sets a mark if 
> a object has been gc'ed?

No, it sets a mark if the object is not marked... the object is then
not collected, but put on the guardian's dead list, so you can fetch
the dead objects.

A brief description of guardians (and a link to the original paper on
guardians, which is probably much, much better) is availble at

http://home.thezone.net/~gharvey/guile/qdocs/html/qdocs_10.html#SEC21

-- 
Greg

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