[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [patch #6569] Allow grep to work in small stack environment
From: |
Paul Eggert |
Subject: |
Re: [patch #6569] Allow grep to work in small stack environment |
Date: |
Fri, 27 Aug 2010 13:03:11 -0700 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6 |
On 08/27/2010 12:33 PM, Eric Blake wrote:
> 4k in a non-recursive algorithm is probably fine for a non-threaded app;
Yes, and that is the case here.
> but if there is any chance for recursion, then stack-allocating a 4k
> array risks interfering with stack overflow detection
Yes, quite right; I should have written "a bit smaller than 4k"
instead of "4k-or-so". gnulib/lib/malloca.h has more on this.