[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Why do Fdefvar not protect its argument and temporaries with GCPRO?
From: |
Stefan Monnier |
Subject: |
Re: Why do Fdefvar not protect its argument and temporaries with GCPRO? |
Date: |
Wed, 19 Nov 2014 08:51:45 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
> I think a few of them do too much GCPRO, since arguments of lisp
> functions are protected by the caller (and conses are not relocated).
Maybe I'm misunderstanding what you're saying, but to clarify:
The calling convention we use does not require the caller to
gcprotect the arguments, instead it's the callee who should protect its
own arguments, if and when needed.
>> Is this a bug?
> In this case, I think it is.
Agreed.
Stefan