guile-devel
[Top][All Lists]
Advanced

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

Re: doco scm_remember_upto_1


From: Marius Vollmer
Subject: Re: doco scm_remember_upto_1
Date: 22 May 2003 11:42:48 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

Rob Browning <address@hidden> writes:

> Kevin Ryde <address@hidden> writes:
> 
> > In the "Type checking" node of the manual showing the clear_image
> > example smob code, should that function have an scm_remember_upto_1
> > just before returning, in order to keep image_smob visible to a
> > garbage collect that might run in another thread?

Yes, that would be an improvement.  As Rob say, you are safe right
now, but having one scm_remember_upto_here too many does not hurt.

> Marius may need to comment here, but I was under the impression that
> at the moment we haven't been trying to write all the code to
> accomodate a C-side preemptive GC.

Yes, but I'd say that for new code we could be more careful with the
scm_remembers.




reply via email to

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