dev-serveez
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [dev-serveez] guile gc


From: Martin Grabmueller
Subject: Re: [dev-serveez] guile gc
Date: Fri, 21 Sep 2001 13:03:35 +0200 (MET DST)

> From: stefan <address@hidden>
> Date: Thu, 20 Sep 2001 16:18:03 +0200 (CEST)
> 
> I just added an additional gc marker function to the svz-socket
> smobs in order to inform guile about a possible SCM reference in
> sock->data. Is that correct ?

I didn't look at it, but all SCM references which are still to be used
must be rotected from GC, either by providing a masrking function, or
by statically adding them to the set of protected objects.  The former
method is encouraged.

> If this is, then I wonder if we should mark all the callbacks referred by
> servertypes, servers and sockets, too. Does guile also delete these
> functions if not referred anymore ?

If there are no other references, they need to be protected, yes.

> Can this (unreferenced procedure) happen at all ?

No problem:

(define id (lambda (x) x))
(set! id #f)

... and the function created by the lambda above may be safely
reclaimed by the GC.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]