[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gnulib and threaded execution
From: |
Jim Meyering |
Subject: |
Re: gnulib and threaded execution |
Date: |
Fri, 03 Dec 2010 07:46:12 +0100 |
Hi Bruno,
Bruno Haible wrote:
> You're just scratching the surface. More importantly, the 'alloca'
> module cannot be used _at_all_ in code meant to be used in multiple
> threads.
> 1. because the stack size for threads is often smaller than
> the stack size of the main thread. (16 KB vs. 8 MB, or so.)
> You have to use module 'safe-alloca' instead.
> 2. because the alloca.c code assumes that there is a "stack
> direction". This is not the case any more with GCC's new
> "split stacks" <http://gcc.gnu.org/wiki/SplitStacks>.
Is #2 really relevant?
alloca.c is compiled with gcc only for 1.x versions.