TLS, Thread Local Storage..
Marcel Moolenaar
marcel at xcllnt.net
Wed Feb 25 12:12:25 PST 2004
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
More information about the freebsd-current
mailing list