[Python-checkins] Increase stack reserve size for Windows debug builds to avoid test crashes (GH-102764)

miss-islington webhook-mailer at python.org
Thu Mar 16 21:34:56 EDT 2023


https://github.com/python/cpython/commit/d025b1d2785ced8d436246aaf7627aa2c33493d4
commit: d025b1d2785ced8d436246aaf7627aa2c33493d4
branch: 3.11
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2023-03-16T18:34:49-07:00
summary:

Increase stack reserve size for Windows debug builds to avoid test crashes (GH-102764)

(cherry picked from commit f33b33eb31c11a32b2955eb1f002f02267bd7d61)

Co-authored-by: Steve Dower <steve.dower at python.org>

files:
M PCbuild/python.vcxproj
M PCbuild/pythonw.vcxproj

diff --git a/PCbuild/python.vcxproj b/PCbuild/python.vcxproj
index d07db3a68150..f4640454a730 100644
--- a/PCbuild/python.vcxproj
+++ b/PCbuild/python.vcxproj
@@ -95,7 +95,7 @@
     <Link>
       <SubSystem>Console</SubSystem>
       <StackReserveSize Condition="$(Configuration) != 'Debug'">2000000</StackReserveSize>
-      <StackReserveSize Condition="$(Configuration) == 'Debug'">4000000</StackReserveSize>
+      <StackReserveSize Condition="$(Configuration) == 'Debug'">8000000</StackReserveSize>
     </Link>
   </ItemDefinitionGroup>
   <ItemGroup>
diff --git a/PCbuild/pythonw.vcxproj b/PCbuild/pythonw.vcxproj
index e7216dec3a1a..e23635e5ea94 100644
--- a/PCbuild/pythonw.vcxproj
+++ b/PCbuild/pythonw.vcxproj
@@ -89,7 +89,8 @@
   </PropertyGroup>
   <ItemDefinitionGroup>
     <Link>
-      <StackReserveSize>2000000</StackReserveSize>
+      <StackReserveSize Condition="$(Configuration) != 'Debug'">2000000</StackReserveSize>
+      <StackReserveSize Condition="$(Configuration) == 'Debug'">8000000</StackReserveSize>
     </Link>
   </ItemDefinitionGroup>
   <ItemGroup>



More information about the Python-checkins mailing list