This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: externs and thread local storage


On Fri, Jul 07, 2006 at 10:56:08PM -0400, Robert Dewar wrote:
> That's not true, thread local storage can be done simply by mapping
> hardware on some machines, where you swap maps on a context switch.

Not with the semantics we have for __thread, which asserts
that its address is valid in all threads.

And, no one has tried this since Irix, wherein it didn't 
perform well.  the effects of tlb flushing at context
switch are heavy.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]