[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GC ??
From: |
Matthias Koeppe |
Subject: |
Re: GC ?? |
Date: |
Wed, 03 Dec 2003 18:04:29 +0100 |
User-agent: |
Gnus/5.090024 (Oort Gnus v0.24) Emacs/21.3.50 (usg-unix-v) |
Stephen Compall <address@hidden> writes:
> Matthias Koeppe <address@hidden> writes:
>
>> The garbage collector only scans the Scheme heap and the C/Scheme
>> stack, but neither the global C data nor the C heap.
>
> Given this, do C functions that use SCM objects and presumably might
> call GC at some point need to declare their SCM variables volatile?
"Scanning" means finding pointers to live Scheme objects. Guile's
conservative GC never changes the pointer values of live objects, as a
copying GC would do. Therefore, there is no reason to declare SCM
variables volatile.
--
Matthias Koeppe -- http://www.math.uni-magdeburg.de/~mkoeppe
SWIG makes Guile wrappers for C/C++ libs -- http://www.swig.org
ILISP does module-aware Emacs/Guile interaction -- http://sf.net/projects/ilisp
- GC ??, dv . praveen, 2003/12/02
- Re: GC ??, dv . praveen, 2003/12/03
- Re: GC ??, Matthias Koeppe, 2003/12/03
- Re: GC ??, Stephen Compall, 2003/12/03
- Re: GC ??, Ludovic Courtès, 2003/12/03
- Re: GC ??,
Matthias Koeppe <=
- Re: GC ??, Andreas Rottmann, 2003/12/03
- Re: GC ??, dv . praveen, 2003/12/03