Commit f6c69e6c authored by Steve Dower's avatar Steve Dower

#22734 marshal needs a lower stack depth for debug builds on Windows

parent 53683965
...@@ -188,7 +188,7 @@ class BugsTestCase(unittest.TestCase): ...@@ -188,7 +188,7 @@ class BugsTestCase(unittest.TestCase):
head = last = [] head = last = []
# The max stack depth should match the value in Python/marshal.c. # The max stack depth should match the value in Python/marshal.c.
if os.name == 'nt' and hasattr(sys, 'gettotalrefcount'): if os.name == 'nt' and hasattr(sys, 'gettotalrefcount'):
MAX_MARSHAL_STACK_DEPTH = 1500 MAX_MARSHAL_STACK_DEPTH = 1000
else: else:
MAX_MARSHAL_STACK_DEPTH = 2000 MAX_MARSHAL_STACK_DEPTH = 2000
for i in range(MAX_MARSHAL_STACK_DEPTH - 2): for i in range(MAX_MARSHAL_STACK_DEPTH - 2):
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
* On Windows debug builds, reduce this value. * On Windows debug builds, reduce this value.
*/ */
#if defined(MS_WINDOWS) && defined(_DEBUG) #if defined(MS_WINDOWS) && defined(_DEBUG)
#define MAX_MARSHAL_STACK_DEPTH 1500 #define MAX_MARSHAL_STACK_DEPTH 1000
#else #else
#define MAX_MARSHAL_STACK_DEPTH 2000 #define MAX_MARSHAL_STACK_DEPTH 2000
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment