[Top][All Lists]

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

Re: Bug#413787: libc0.3: TLS patch

From: Barry deFreese
Subject: Re: Bug#413787: libc0.3: TLS patch
Date: Wed, 07 Mar 2007 10:05:16 -0500
User-agent: Thunderbird (Windows/20070221)

Samuel Thibault wrote:

Thomas Schwinge, le Wed 07 Mar 2007 10:32:00 +0100, a écrit :
On Wed, Mar 07, 2007 at 03:06:22AM +0100, Samuel Thibault wrote:
Thanks to Barry's long glibc builds, here is at last a patch that builds
a tls/__thread -enabled and working glibc.

BTW, by "working", I mean that simple programs do work, event with
__thread variables.

Can you comment on the issues mentioned at

Mmm, which issues?

About the glibc-Mach interface, I don't really have any opinion ;
I would just remind that glibc-linux interface uses a generic
set_thread_area() syscall and a newtls parameter to the clone syscall,
but the passed structure is very arch-specific anyway.

About --without-__thread, it seems to work already (it got debugged on
Linux in the meanwhile).

The attached patch may be applied as soon as now, but do _not_ drop
--without-tls and --without-__thread yet, because hurd's libpthread.so
doesn't initialize TLS yet, and hence that would break all multithreaded
applications. I'm now working on the Hurd part, I'll mail the bug when
it is uploaded.
Here is what Roland once wrote:

Ah, thanks for digging out this, that'll be helpful.


How do we go about getting this stuff upstream? I can file bugs and whatever but I know there are concerns from some (i.e. Ulrich) about some of the patches we have, such as the __libc_once fix.

Thanks for all the work!


reply via email to

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