thread-local data access
Ulrich Drepper
drepper@redhat.com
Wed Sep 27 07:45:00 GMT 2000
Jakub Jelinek <jakub@redhat.com> writes:
> Thinking about it, wouldn't be better to just make the other arches slower
> (e.g. by managing a global array of pointers to thread-local data indexed by
> say [STACK_POINTER >> 16] (provided that we make sure that no two thread
> stacks share the same 64K page))?
This is how finding thread local data (and also the thread descriptor)
works in the moment. Inlining these computations is a problem since
it would mean you cannot set the stack address (and size) yourself
anymore.
--
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------
More information about the Libc-hacker
mailing list