guile-devel
[Top][All Lists]
Advanced

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

Re: "avoid running GC when SCM_I_CURRENT_THREAD is unset"


From: Andy Wingo
Subject: Re: "avoid running GC when SCM_I_CURRENT_THREAD is unset"
Date: Wed, 30 Mar 2011 23:31:27 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

Hi Neil!

Adding guile-devel; I'm wrong a lot lately, and folks should know ;-)

On Wed 30 Mar 2011 21:11, Neil Jerram <address@hidden> writes:

> I saw this change and couldn't fully understand it.  Given that you
> ended up adding GC_disable() and GC_enable() around the GC_malloc()
> call, couldn't you just have done that without all the other changes
> from "t->" to "t." ?
>
> I'm probably missing something, but could you point it out?

Indeed, I probably could have just done a GC_disable before the whole
thing, and an enable() afterwards.  That's probably clearer, no?

Andy
-- 
http://wingolog.org/



reply via email to

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