]> granicus.if.org Git - python/commitdiff
#22734 marshal needs a lower stack depth for debug builds on Windows
authorSteve Dower <steve.dower@microsoft.com>
Sat, 1 Nov 2014 22:15:16 +0000 (15:15 -0700)
committerSteve Dower <steve.dower@microsoft.com>
Sat, 1 Nov 2014 22:15:16 +0000 (15:15 -0700)
Lib/test/test_marshal.py
Python/marshal.c

index 068c4713e1824e90a930e69324858e08b1caa9f5..d2d6b4871480562b1b9c16583d8809adb073716d 100644 (file)
@@ -188,7 +188,7 @@ class BugsTestCase(unittest.TestCase):
         head = last = []
         # The max stack depth should match the value in Python/marshal.c.
         if os.name == 'nt' and hasattr(sys, 'gettotalrefcount'):
-            MAX_MARSHAL_STACK_DEPTH = 1500
+            MAX_MARSHAL_STACK_DEPTH = 1000
         else:
             MAX_MARSHAL_STACK_DEPTH = 2000
         for i in range(MAX_MARSHAL_STACK_DEPTH - 2):
index ca64be394821a1c17ed45d6f29f341ad1675e379..837aa4812c76e067ec091eee2b5e6ee7f50d6483 100644 (file)
@@ -19,7 +19,7 @@
  * On Windows debug builds, reduce this value.
  */
 #if defined(MS_WINDOWS) && defined(_DEBUG)
-#define MAX_MARSHAL_STACK_DEPTH 1500
+#define MAX_MARSHAL_STACK_DEPTH 1000
 #else
 #define MAX_MARSHAL_STACK_DEPTH 2000
 #endif