TLS, was Re: Getting the ol' Macintosh LC475 modernized
On Wed, 21 Aug 2013, Thorsten Glaser wrote:
> >> Anything GTK+/GNOME (e.g. xchat) is not usable due to their use of
> >> TLS and/or atomics. I had thought KDE would suffer from the same, but
> >> they seem to be faster?
> >
> >We do have TLS now, don't we?
>
> Yes, that precisely is the problem.
>
> We *must* break the ABI, put aside an A register for the TLS thread
> base, and do something about the syscall overhead for things like
> atomic_cmpxchg, gettimeofday, etc. too, like shared kernel/user pages.
Losing a register also hurts performance. Someone suggested moving
get/set_thread_area to a VDSO (as well as the atomic ops). As I understand
it, this need not break the ABI and should be faster than the TLS system
calls.
Finn
Reply to: