Re: thread-local storage, especially on x86
Re: thread-local storage, especially on x86
- Subject: Re: thread-local storage, especially on x86
- From: Matt Watson <email@hidden>
- Date: Sun, 11 Sep 2005 10:55:24 -0700
On Sep 11, 2005, at 10:35 AM, Gary Byers wrote:
The concerns that I have aren't based on the belief that the
pthread library functions are somehow grossly inefficient
If not performance, then what are your concerns, exactly?
Darwin/x86 already uses %gs internally as the selector for TLS, just
like Linux.
The 64-bit PowerPC ABI reserves r13 for TLS.
Since the 32-bit PowerPC Mac OS X ABI does not provide a register
dedicated to TLS, Darwin/ppc uses a user readable SPRG on platforms
which support it (i.e. G5), and an optimized kernel trap on platforms
which don't.
Perhaps if you stated your complaint more succinctly, without trying
to design the solution first, it would be more evident how you would
like the implementation to behave.
matt.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden