Bug 921198 - Increase pymake recursion limit (again); r=glandium
authorGregory Szorc <gps@mozilla.com>
Thu, 26 Sep 2013 14:43:45 -0700
changeset 148870 0005c66e4de4d6c4221f2807260b73cebf0d10f5
parent 148869 153aebb30387c3a6cf4163bd7de4620decd4652b
child 148871 4313ea50a8ee68326a948e24f796edc5667bc664
push id34380
push userryanvm@gmail.com
push dateFri, 27 Sep 2013 01:41:00 +0000
treeherdermozilla-inbound@fdc6054e33e4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersglandium
bugs921198
milestone27.0a1
first release with
nightly win32
0005c66e4de4 / 27.0a1 / 20130926145500 / files
nightly win64
0005c66e4de4 / 27.0a1 / 20130926145500 / files
nightly linux32
nightly linux64
nightly mac
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly win32
nightly win64
Bug 921198 - Increase pymake recursion limit (again); r=glandium
build/pymake/make.py
--- a/build/pymake/make.py
+++ b/build/pymake/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"