[Top][All Lists]

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

Re: Question about your libpthread

From: Richard Braun
Subject: Re: Question about your libpthread
Date: Wed, 15 Aug 2012 16:17:10 +0200
User-agent: Mutt/1.5.20 (2009-06-14)

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 :-).

reply via email to

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