Browse thread
[Caml-list] Thread Local Storage
-
Jonathan Roewen
-
Vincenzo Ciancia
-
Jonathan Roewen
-
skaller
-
Florian Weimer
-
skaller
- Florian Weimer
-
skaller
-
Florian Weimer
-
skaller
-
Jonathan Roewen
-
Vincenzo Ciancia
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2006-03-01 (11:23) |
From: | Florian Weimer <fw@d...> |
Subject: | Re: [Caml-list] Re: Thread Local Storage |
> On Tue, 2006-02-14 at 22:40 +0100, Florian Weimer wrote: >> > TLS is entirely a legacy application backwards compatibility hack >> > designed to support badly designed C applications. >> >> TLS helps a lot on a certain register-starved architecture because you >> don't need to keep a pointer to the thread data structure around in >> case you don't need it (but called functions might). > > What's wrong with placing it on the stack? Do you suggest to add an implicit argument to all function calls? Unless you can optimize it away if it's not needed, the TLS approach should still be faster for typical code.