[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Pthreads-hackers] stack for main thread
From: |
Jeroen Dekkers |
Subject: |
Re: [Pthreads-hackers] stack for main thread |
Date: |
Thu, 7 Feb 2002 21:54:48 +0100 |
User-agent: |
Mutt/1.3.25i |
On Thu, Feb 07, 2002 at 08:21:24PM +0100, Johan Rydberg wrote:
> Hi!
>
> If the thread specific data (tsd) will be accessed through a
> per-thread register (%gs segment on x86) I see no reason for
> changing stacks for the main thread (i.e., when initilizing the
> thread library).
>
> cthreads change the main stack because all stacks are of the
> same size -- same goes for Hurd threadvars.
>
> Are there any reasons for changing the initial stack when using
> per-thread registers?
Not AFAIK. I've added a FIXME comment in my local repository. I will
probably change it if I see no need for it when rewriting the
initialization code. Ulrich is busy with the TLS things at the
moment. I've got tests next week and the week after that. Then I've a
week vacation and will probably hack pthreads a lot. I hope the TLS
things will be implemented in glibc then.
Jeroen Dekkers
--
Jabber supporter - http://www.jabber.org Jabber ID: address@hidden
Debian GNU supporter - http://www.debian.org http://www.gnu.org
IRC: address@hidden
pgpRKs4c5VJp_.pgp
Description: PGP signature