guile-user
[Top][All Lists]
Advanced

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

Re: GC ??


From: Ludovic Courtès
Subject: Re: GC ??
Date: Wed, 3 Dec 2003 16:55:12 +0100
User-agent: Mutt/1.5.4i [Guile enabled]

Hi,

Today, 3 hours, 5 minutes, 19 seconds ago, Stephen Compall wrote:
> Given this, do C functions that use SCM objects and presumably might
> call GC at some point need to declare their SCM variables volatile?

No.  If a C function is passed (by Guile) an SCM object, Guile *knows*
the underlying Scheme object is still referenced so it may not be
garbage collected.

Also, note that GC may only happen on scm_must_malloc () calls I think.

Cheers,
Ludovic.




reply via email to

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