Bug 921198 - Increase pymake recursion limit (again); r=glandium
authorGregory Szorc <gps@mozilla.com>
Thu, 26 Sep 2013 14:45:38 -0700
changeset 356 498a23902260beef13c1013ef657765e74d6606f
parent 355 3ef1b1059c5c0e286ec77c28c72bc075cba10311
child 357 166a45b029b9262b1f633e265aad8a27cc7520a6
push id226
push usergszorc@mozilla.com
push dateThu, 26 Sep 2013 21:45:43 +0000
reviewersglandium
bugs921198
Bug 921198 - Increase pymake recursion limit (again); r=glandium
make.py
--- a/make.py
+++ b/make.py
@@ -14,16 +14,18 @@ import gc
 if __name__ == '__main__':
   sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 0)
   sys.stderr = os.fdopen(sys.stderr.fileno(), 'w', 0)
 
   gc.disable()
 
   # This is meant as a temporary workaround until issues with many targets
   # and prerequisites is addressed. Bug 874210 tracks.
+  #
+  # The default recursion limit for CPython is 1000.
   try:
-      sys.setrecursionlimit(2 * sys.getrecursionlimit())
+      sys.setrecursionlimit(10000)
   except Exception:
       print >>sys.stderr, 'Unable to increase Python recursion limit.'
 
   pymake.command.main(sys.argv[1:], os.environ, os.getcwd(), cb=sys.exit)
   pymake.process.ParallelContext.spin()
   assert False, "Not reached"