public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* TLS & dynamic loading, part I
@ 2002-02-13  0:11 Ulrich Drepper
  0 siblings, 0 replies; only message in thread
From: Ulrich Drepper @ 2002-02-13  0:11 UTC (permalink / raw)
  To: GNU libc hacker

TLS and dynamic loading now should also work.  The tst-tls4 and
tst-tls5 programs show what is working.  Unloading is the next item on
the list and then finally making all work with libpthread.  This also
means a lot more tests.

On tests: if you port the TLS stuff to a new platform you should look
at the tst-tls? tests in the order of their numbers.  The coplexity
increases with each test and all previous tests must work for the next
to succeed.  I'll keep it like this with all following tests.


The code added in this set of patches is really hairy.  The
__tls_get_addr function obviously should be fast.  This includes that
no locking must be used.  This in turns requires certain complications
in the layout and allocation of the data structure which in good old
tradition themselves must not impose any artificial limits on the
program.  I think I've documented the code sufficiently for those who
want to understand the code.


Now that Jakub has posted the binutils patch you might want to write
the architecture support.  If the model for the platform is that of
x86 I see not many problems anymore.  For IA-64-like models I'd wait.
I'll have the IA-64 stuff working at some point.  It's not difficult,
it might require some changes in generic code, though.

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-02-13  8:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-13  0:11 TLS & dynamic loading, part I Ulrich Drepper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).