[Top][All Lists]

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

Re: Implementation of the promise smob

From: Andy Wingo
Subject: Re: Implementation of the promise smob
Date: Thu, 19 Aug 2010 21:43:24 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

On Thu 19 Aug 2010 19:10, Abhijeet More <address@hidden> writes:

> Hi,
> I noticed that the implementation of the "promise" smob did not have
> any "mark" function defined.
> This smob does contain a couple of other SCM objects.
> Can someone explain how these objects are not cleared up by the gc
> (since nobody marks them as live)?

If you do not provide a mark function, the GC will treat all words in an
object as pointers, and mark them.

The problem, I think, is not that the promise refers to its value: it is
that something is mistakenly referring to the promise (and thence to the


reply via email to

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