[Top][All Lists]

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

Re: Preventing stack overflows with alloca.

From: Kim F. Storm
Subject: Re: Preventing stack overflows with alloca.
Date: 22 Jun 2004 00:01:33 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

Richard Stallman <address@hidden> writes:

>     Since old_value is not a lisp object here,
>     we would need to fix (hack) GC like this:
>       for (bind = specpdl; bind != specpdl_ptr; bind++)
>       {
>         mark_object (bind->symbol);
>         if (bind->func != safe_alloca_unwind)
>           mark_object (bind->old_value);
>       }
> Or else use make_save_value to convert it to a clean Lisp object.
> Then GC won't need changing.

I installed the SAFE_ALLOCA macros, using the make_save_value approach.
I also fixed the alloca uses that looked suspicious to me.

Kim F. Storm <address@hidden> http://www.cua.dk

reply via email to

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