diff options
author | Steve Dower <steve.dower@python.org> | 2024-01-16 22:02:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-16 22:02:20 (GMT) |
commit | 2e672f7ca67470cbda3346a4b1b532cf5fa61799 (patch) | |
tree | 5b87cf3513f3bf7f904f116550f53e23463cd762 | |
parent | b331381485c1965d1c88b7aee7ae9604aca05758 (diff) | |
download | cpython-2e672f7ca67470cbda3346a4b1b532cf5fa61799.zip cpython-2e672f7ca67470cbda3346a4b1b532cf5fa61799.tar.gz cpython-2e672f7ca67470cbda3346a4b1b532cf5fa61799.tar.bz2 |
gh-113655: Increase default stack size for PGO builds to avoid C stack exhaustion (GH-114148)
-rw-r--r-- | PCbuild/python.vcxproj | 5 | ||||
-rw-r--r-- | PCbuild/pythonw.vcxproj | 7 |
2 files changed, 9 insertions, 3 deletions
diff --git a/PCbuild/python.vcxproj b/PCbuild/python.vcxproj index 8b73386..fdf573a 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 e23635e..31f2130 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> |