[pypy-commit] pypy default: Use "asmgcc" by default only on Linux. On other platforms,

arigo noreply at buildbot.pypy.org
Wed Aug 3 15:30:01 CEST 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r46245:320dcd7c2fbd
Date: 2011-08-03 15:30 +0200
http://bitbucket.org/pypy/pypy/changeset/320dcd7c2fbd/

Log:	Use "asmgcc" by default only on Linux. On other platforms, use the
	"shadowstack" by default.

diff --git a/pypy/config/translationoption.py b/pypy/config/translationoption.py
--- a/pypy/config/translationoption.py
+++ b/pypy/config/translationoption.py
@@ -13,6 +13,10 @@
 DEFL_LOW_INLINE_THRESHOLD = DEFL_INLINE_THRESHOLD / 2.0
 
 DEFL_GC = "minimark"
+if sys.platform.startswith("linux"):
+    DEFL_ROOTFINDER_WITHJIT = "asmgcc"
+else:
+    DEFL_ROOTFINDER_WITHJIT = "shadowstack"
 
 IS_64_BITS = sys.maxint > 2147483647
 
@@ -109,7 +113,7 @@
     BoolOption("jit", "generate a JIT",
                default=False,
                suggests=[("translation.gc", DEFL_GC),
-                         ("translation.gcrootfinder", "asmgcc"),
+                         ("translation.gcrootfinder", DEFL_ROOTFINDER_WITHJIT),
                          ("translation.list_comprehension_operations", True)]),
     ChoiceOption("jit_backend", "choose the backend for the JIT",
                  ["auto", "x86", "x86-without-sse2", "llvm"],


More information about the pypy-commit mailing list