Nvidia, TLS and __thread keyword -- an observation

Alexander Kabaev ak03 at gte.com
Wed Jun 18 16:18:12 PDT 2003


On Wed, 18 Jun 2003 15:55:17 -0700
Marcel Moolenaar <marcel at xcllnt.net> wrote:

> On Wed, Jun 18, 2003 at 03:19:30PM -0700, Julian Elischer wrote:
> > 
> > Marcel, are you (or do you kno of anyone else) doing anything on
> > TLS?
> 
> We can approach it like this (just an example to bootstrap the
> work):
> 
> o  Agree on a version of GCC we'll use during prototyping or wait
>    for GCC to be updated in the tree.
> o  Implement static TLS in libthr.
> o  Test.
> o  Implement dynamic TLS in libthr and RTLD. Concurrently implement
>    static TLS in libkse.
> o  Test static TLS in libkse.
> o  Finish dynamic TLS in libthr/RTLD and start dynamic TLS in libkse.
> o  Test libthr (finish dynamic TLS in libkse).
> o  Test libkse.
> 
> I deliberately don't want to deal with libc_r, but if people think
> we should make that work too than we simply don't deal with libc_r
> on ia64.

I announced my intention to work on rtld side of TLS support some time
ago and I already have some work in progress.

Interested parties can easily compile GCC 3.3 port with TLS support.
Run 'make patch' in the ports directory and then edit
work/gcc-3.3/gcc/configure to look for binutils 2.13 instead of 2.14
while testing for the platform TLS support. Compile and install the
port.

-- 
Alexander Kabaev


More information about the freebsd-threads mailing list