Author: Armin Rigo <ar...@tunes.org>
Branch: ppc-updated-backend
Changeset: r80258:9c76fe579f23
Date: 2015-10-16 11:14 +0200
http://bitbucket.org/pypy/pypy/changeset/9c76fe579f23/

Log:    need more stack!

diff --git a/rpython/translator/c/src/stack.h b/rpython/translator/c/src/stack.h
--- a/rpython/translator/c/src/stack.h
+++ b/rpython/translator/c/src/stack.h
@@ -6,7 +6,14 @@
 
 
 #ifndef MAX_STACK_SIZE
+#  if defined(__powerpc__) || defined(__ppc__) || defined(__PPC__)
+     /* PowerPC seems to consume the stack very quickly.  The default
+      * value of 768 kb is only enough for 406 levels on ppc64, and 792
+      * on ppc64le */
+#    define MAX_STACK_SIZE (11 << 18)    /* 2.8 mb */
+#  else
 #    define MAX_STACK_SIZE (3 << 18)    /* 768 kb */
+#  endif
 #endif
 
 
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to