guile-user
[Top][All Lists]
Advanced

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

Re: Need for scm_remember_upto_here_* in guile-2.0


From: David Kastrup
Subject: Re: Need for scm_remember_upto_here_* in guile-2.0
Date: Tue, 22 Sep 2015 17:26:19 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

address@hidden (Ludovic Courtès) writes:

> Hello,
>
> In practice scm_remember_upto_here_* is useless with libgc, since libgc
> also tracks pointers in registers.

Sounds like a big non-sequitur.  scm_remember_upto_here_* is for keeping
SCM values active (including in registers).  Any conversion of an SCM
value to some other data depending on it will not protect the SCM value
as such and may lead to collection/finalization of the SCM cell (calling
guardians, removing from weak hashtables and so on).

-- 
David Kastrup




reply via email to

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