gh-113655: Increase default stack size for PGO builds to avoid C stack exhaustion (GH-114148)

This commit is contained in:
Steve Dower 2024-01-16 22:02:20 +00:00 committed by GitHub
parent b331381485
commit 2e672f7ca6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 3 deletions

View file

@ -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>

View file

@ -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>