[pypy-commit] pypy default: Change the default gcrootfinder: "asmgcc" should be used only on x86 or

arigo noreply at buildbot.pypy.org
Sun Sep 20 10:02:49 CEST 2015


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r79713:3b058e5d5c33
Date: 2015-09-20 10:03 +0200
http://bitbucket.org/pypy/pypy/changeset/3b058e5d5c33/

Log:	Change the default gcrootfinder: "asmgcc" should be used only on x86
	or x86-64 Linux

diff --git a/rpython/config/translationoption.py b/rpython/config/translationoption.py
--- a/rpython/config/translationoption.py
+++ b/rpython/config/translationoption.py
@@ -16,10 +16,11 @@
 
 DEFL_GC = "incminimark"   # XXX
 
+DEFL_ROOTFINDER_WITHJIT = "shadowstack"
 if sys.platform.startswith("linux"):
-    DEFL_ROOTFINDER_WITHJIT = "asmgcc"
-else:
-    DEFL_ROOTFINDER_WITHJIT = "shadowstack"
+    _mach = os.popen('uname -m', 'r').read().strip()
+    if _mach.startswith('x86') or _mach in ['i386', 'i486', 'i586', 'i686']:
+        DEFL_ROOTFINDER_WITHJIT = "asmgcc"   # only for Linux on x86 / x86-64
 
 IS_64_BITS = sys.maxint > 2147483647
 


More information about the pypy-commit mailing list