[pypy-commit] pypy arm64: Disable '__thread'. Seems to fix things on aarch64, but we'll see if it's just

arigo pypy.commits at gmail.com
Tue Jul 9 09:11:16 EDT 2019


Author: Armin Rigo <arigo at tunes.org>
Branch: arm64
Changeset: r96956:a5c8b974cdfc
Date: 2019-07-09 15:10 +0200
http://bitbucket.org/pypy/pypy/changeset/a5c8b974cdfc/

Log:	Disable '__thread'. Seems to fix things on aarch64, but we'll see if
	it's just cause by random memory corruption or is really related.

diff --git a/rpython/config/translationoption.py b/rpython/config/translationoption.py
--- a/rpython/config/translationoption.py
+++ b/rpython/config/translationoption.py
@@ -1,5 +1,6 @@
 import sys
 import os
+import platform as _stdlib_platform
 from rpython.config.config import OptionDescription, BoolOption, IntOption, ArbitraryOption, FloatOption
 from rpython.config.config import ChoiceOption, StrOption, Config, ConflictConfigError
 from rpython.config.config import ConfigError
@@ -30,7 +31,9 @@
     False)
     # Windows doesn't work.  Please
     # add other platforms here if it works on them.
-
+MACHINE = _stdlib_platform.machine()
+if MACHINE == 'aarch64':
+    SUPPORT__THREAD = False
 # (*) NOTE: __thread on OS/X does not work together with
 # pthread_key_create(): when the destructor is called, the __thread is
 # already freed!


More information about the pypy-commit mailing list