Author: Armin Rigo <[email protected]>
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
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit