Re: TLS, Thread Local Storage..

From: Marcel Moolenaar <marcel_at_xcllnt.net>
Date: Wed, 25 Feb 2004 12:11:54 -0800
On Wed, Feb 25, 2004 at 10:20:38AM -0800, David O'Brien wrote:
> On Wed, Feb 25, 2004 at 10:09:22AM -0800, Marcel Moolenaar wrote:
> > Ok. I assume this applies to i386 and amd64 only and that alpha and
> > sparc64 still lack compiler support for it or are alpha and sparc64
> > fixed too?
> 
> http://people.freebsd.org/~marcel/tls.html says nothing special is needed
> for Alpha.  Can you clarify?

Bad wording. The compiler does not generate any thread-local access
sequences when it should. The compiler seems to ignore the __thread
keyword and pretend the variable is global. That's pretty much the
same kind of support as on sparc64, except that on sparc64 the
compiler emits an error for __thread.

So, on alpha the compiler needs to be enhanced to emit thread-local
access sequences. I'll make the page more clear.

-- 
 Marcel Moolenaar	  USPA: A-39004		 marcel_at_xcllnt.net
Received on Wed Feb 25 2004 - 11:12:25 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:44 UTC