Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r90665:059c3a8c5232
Date: 2017-03-13 20:23 +0100
http://bitbucket.org/pypy/pypy/changeset/059c3a8c5232/

Log:    No, __thread doesn't work as we need it to, on OS/X

diff --git a/rpython/config/translationoption.py 
b/rpython/config/translationoption.py
--- a/rpython/config/translationoption.py
+++ b/rpython/config/translationoption.py
@@ -26,10 +26,15 @@
 
 SUPPORT__THREAD = (    # whether the particular C compiler supports __thread
     sys.platform.startswith("linux") or     # Linux works
-    sys.platform.startswith("darwin"))      # OS/X >= 10.7 works
+    #sys.platform.startswith("darwin") or   # OS/X >= 10.7 works (*)
+    False)
     # Windows doesn't work.  Please
     # add other platforms here if it works on them.
 
+# (*) NOTE: __thread on OS/X does not work together with
+# pthread_key_create(): when the destructor is called, the __thread is
+# already freed!
+
 MAINDIR = os.path.dirname(os.path.dirname(__file__))
 CACHE_DIR = os.path.realpath(os.path.join(MAINDIR, '_cache'))
 
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to