]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-113655: Revert extra stack reserve in PGO builds unless UseExtraStackReserve=true...
authorSteve Dower <steve.dower@python.org>
Mon, 22 Jan 2024 21:19:16 +0000 (21:19 +0000)
committerGitHub <noreply@github.com>
Mon, 22 Jan 2024 21:19:16 +0000 (21:19 +0000)
PCbuild/python.vcxproj
PCbuild/pythonw.vcxproj

index 1e5ab877488e4a12e62c863c9a68fa12f87572ce..4a99ffc677c287ceaa99795aeb5503994f2dc3ea 100644 (file)
@@ -99,7 +99,7 @@
       <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>
+      <StackReserveSize Condition="$(Configuration) == 'PGUpdate' and $(UseExtraStackReserve) == 'true'">3000000</StackReserveSize>
     </Link>
   </ItemDefinitionGroup>
   <ItemGroup>
index d6cf0c97dedb092434ff2c4707c03dd7f6b1f860..d08c210ef8a1dc95690e2a5ec83ace366ec631af 100644 (file)
@@ -94,7 +94,7 @@
       <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>
+      <StackReserveSize Condition="$(Configuration) == 'PGUpdate' and $(UseExtraStackReserve) == 'true'">3000000</StackReserveSize>
     </Link>
   </ItemDefinitionGroup>
   <ItemGroup>