Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Jun 2003 17:48:01 -0700
From:      Marcel Moolenaar <marcel@xcllnt.net>
To:        Julian Elischer <julian@elischer.org>
Cc:        aritger@nvidia.com
Subject:   Re: Nvidia, TLS and __thread keyword -- an observation
Message-ID:  <20030618004801.GB2440@dhcp01.pn.xcllnt.net>
In-Reply-To: <Pine.BSF.4.21.0306171615580.31025-100000@InterJet.elischer.org>
References:  <20030617223910.GB57040@ns1.xcllnt.net> <Pine.BSF.4.21.0306171615580.31025-100000@InterJet.elischer.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jun 17, 2003 at 04:38:44PM -0700, Julian Elischer wrote:

> > The dynamic TLS model requires more substantial changes and involves
> > RTLD as well. This is the model that requires __tls_get_addr().
> 
> By my reading of it,
> you can't use the static model alone.
> If you have dynamically loaded modules you need to be able to use the
> dynamic model.

Yes. If you don't support dynamic loading of shared libraries with TLS,
you don't need the dynamic model. You can use the static TLS model even
with shared objects, provided you allocate the TLS on thread creation.
But this is mostly academic. We need to implement them both...

-- 
 Marcel Moolenaar	  USPA: A-39004		 marcel@xcllnt.net



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030618004801.GB2440>