emacs-devel
[Top][All Lists]
Advanced

[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: 20 Jun 2004 20:56:24 +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 had forgot about make_save_value.  Yes, we should use that.






reply via email to

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