]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-113655: Increase default stack size for PGO builds to avoid C stack exhaustion...
authorSteve Dower <steve.dower@python.org>
Tue, 16 Jan 2024 22:02:20 +0000 (22:02 +0000)
committerGitHub <noreply@github.com>
Tue, 16 Jan 2024 22:02:20 +0000 (22:02 +0000)
PCbuild/python.vcxproj
PCbuild/pythonw.vcxproj

index 8b733865962373762bd0a81979f5ec1b49087ff3..fdf573aa5bf983efe5d82530ece83f3e9662aa73 100644 (file)
     </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>
index e23635e5ea9411bfb8bd48b2692aa17beeccddba..31f21308e25fb3eb6ffe7d043b1d53ffb3bbed83 100644 (file)
   </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>