https://github.com/python/cpython/commit/2e672f7ca67470cbda3346a4b1b532cf5fa61799
commit: 2e672f7ca67470cbda3346a4b1b532cf5fa61799
branch: main
author: Steve Dower <[email protected]>
committer: zooba <[email protected]>
date: 2024-01-16T22:02:20Z
summary:
gh-113655: Increase default stack size for PGO builds to avoid C stack
exhaustion (GH-114148)
files:
M PCbuild/python.vcxproj
M PCbuild/pythonw.vcxproj
diff --git a/PCbuild/python.vcxproj b/PCbuild/python.vcxproj
index 8b733865962373..fdf573aa5bf983 100644
--- a/PCbuild/python.vcxproj
+++ b/PCbuild/python.vcxproj
@@ -94,8 +94,11 @@
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
- <StackReserveSize Condition="$(Configuration) !=
'Debug'">2000000</StackReserveSize>
+ <StackReserveSize>2000000</StackReserveSize>
<StackReserveSize Condition="$(Configuration) ==
'Debug'">12000000</StackReserveSize>
+ <StackReserveSize Condition="$(Configuration) ==
'PGInstrument'">12000000</StackReserveSize>
+ <!-- HACK: Need additional memory to avoid crashing until gh-113655 is
fixed -->
+ <StackReserveSize Condition="$(Configuration) ==
'PGUpdate'">3000000</StackReserveSize>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
diff --git a/PCbuild/pythonw.vcxproj b/PCbuild/pythonw.vcxproj
index e23635e5ea9411..31f21308e25fb3 100644
--- a/PCbuild/pythonw.vcxproj
+++ b/PCbuild/pythonw.vcxproj
@@ -89,8 +89,11 @@
</PropertyGroup>
<ItemDefinitionGroup>
<Link>
- <StackReserveSize Condition="$(Configuration) !=
'Debug'">2000000</StackReserveSize>
- <StackReserveSize Condition="$(Configuration) ==
'Debug'">8000000</StackReserveSize>
+ <StackReserveSize>2000000</StackReserveSize>
+ <StackReserveSize Condition="$(Configuration) ==
'Debug'">12000000</StackReserveSize>
+ <StackReserveSize Condition="$(Configuration) ==
'PGInstrument'">12000000</StackReserveSize>
+ <!-- HACK: Need additional memory to avoid crashing until gh-113655 is
fixed -->
+ <StackReserveSize Condition="$(Configuration) ==
'PGUpdate'">3000000</StackReserveSize>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]