[Python-checkins] cpython: #22734 marshal needs a lower stack depth for debug builds on Windows

steve.dower python-checkins at python.org
Sat Nov 1 23:16:09 CET 2014


https://hg.python.org/cpython/rev/c2a3865a59f4
changeset:   93337:c2a3865a59f4
user:        Steve Dower <steve.dower at microsoft.com>
date:        Sat Nov 01 15:15:16 2014 -0700
summary:
  #22734 marshal needs a lower stack depth for debug builds on Windows

files:
  Lib/test/test_marshal.py |  2 +-
  Python/marshal.c         |  2 +-
  2 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/Lib/test/test_marshal.py b/Lib/test/test_marshal.py
--- a/Lib/test/test_marshal.py
+++ b/Lib/test/test_marshal.py
@@ -188,7 +188,7 @@
         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):
diff --git a/Python/marshal.c b/Python/marshal.c
--- a/Python/marshal.c
+++ b/Python/marshal.c
@@ -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

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list