On 8/9/15 5:15 AM, Walter Bright wrote:
On 8/9/2015 2:04 AM, Johannes Pfau wrote:
That statement is too broad to be true ;-) GCC's emulated TLS doesn't
have adjacent memory for TLS variables and it works fine with D
(and the GC). It is a little bit slower than if we had adjacent memory.
OTOH this approach works with all kinds of shared libraries and
requires very little system specific code (only need some pthread tls
mechanism). And it is compatible with GCCs emulated TLS, so you can
even have extern TLS variables shared between C and D with emutls.

The reason I did the special support for TLS on OSX is because gcc at
the time did not support TLS in any way shape or form. Now that it does,
dmd should change to do it the same way.

"Where is the bugzilla issue" etc :o). -- Andrei

Reply via email to