emacs-devel
[Top][All Lists]
Advanced

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

Re: How and when to use GCPRO?


From: Leo
Subject: Re: How and when to use GCPRO?
Date: Mon, 27 Dec 2010 10:38:24 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2.91 (Mac OS X 10.6.5)

On 2010-12-27 10:15 +0000, Andreas Schwab wrote:
> Whenever you call a function that can GC and you are using a reference
> to a Lisp object around that call.
>
> None of the functions you call in your example can GC.
>
> Andreas.

Thanks, Andreas. I'll keep that in mind.

If you pass a Lisp_Object as an argument to a function that does GC but
you don't need to use that object after the call, do you need to GCPRO
it?

For example, in `require' (fns.c line 2976), strictly speaking is
GCPROing `filename' absolutely necessary?

Thanks.
Leo



reply via email to

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