On Wed, Aug 15, 2012 at 03:03:55PM +0200, Samuel Thibault wrote: > The alignment issue is for threadvars: as long as we have them, we > need the stack to be aligned, and some constant size. Fortunately, > threadvars are to be dropped, but it's still not complete yet.
That's also the idea I got from reading the code. The work around I'm currently using is to have a weak __pthread_stack_default_size symbol in libpthread. If defined at runtime, this size will be used instead of the 2 MiB default. For Hurd servers, this symbol is defined in libports/manage-multithread.c, and set to 64 KiB, as for cthreads. These parts are of course covered with FIXMEs everywhere :-).