[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: |
Lee Duhem |
Subject: |
Re: Why do Fdefvar not protect its argument and temporaries with GCPRO? |
Date: |
Thu, 20 Nov 2014 10:59:28 +0800 |
On Wed, Nov 19, 2014 at 5:51 AM, Stefan Monnier
<address@hidden> wrote:
>> 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.
Thank both of you for your explanation.
>
>>> Is this a bug?
>> In this case, I think it is.
>
> Agreed.
>
I have send a patch for this.
Sincerely,
lee