Skip to content

Commit 7ef512d

Browse files
committed
Revert "Disable Server GC for 32-bit crossgen2/ilc hosts"
This reverts commit f54edf3.
1 parent 334e4c0 commit 7ef512d

1 file changed

Lines changed: 1 addition & 11 deletions

File tree

src/coreclr/tools/aot/AotCompilerCommon.props

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,6 @@
11
<Project>
22
<PropertyGroup>
3-
<!-- crossgen2/ilc run as the build host architecture when cross-building (CrossHostArch),
4-
otherwise as TargetArchitecture. This is the architecture of the compiler process itself. -->
5-
<_AotCompilerHostArch Condition="'$(CrossHostArch)' != ''">$(CrossHostArch)</_AotCompilerHostArch>
6-
<_AotCompilerHostArch Condition="'$(CrossHostArch)' == ''">$(TargetArchitecture)</_AotCompilerHostArch>
7-
8-
<!-- Server GC reserves per-heap address-space segments up front. On a 32-bit host the ~2 GB
9-
user-mode address space is largely consumed by those reservations, so compiling a very
10-
large method can fail to allocate the contiguous output image buffer and crash with
11-
OutOfMemory. Use Workstation GC on 32-bit hosts. See https://github.com/dotnet/runtime/issues/128531. -->
12-
<ServerGarbageCollection Condition="'$(ServerGarbageCollection)' == '' and '$(_AotCompilerHostArch)' != 'x86' and '$(_AotCompilerHostArch)' != 'arm' and '$(_AotCompilerHostArch)' != 'armel'">true</ServerGarbageCollection>
13-
<ServerGarbageCollection Condition="'$(ServerGarbageCollection)' == ''">false</ServerGarbageCollection>
3+
<ServerGarbageCollection>true</ServerGarbageCollection>
144
<TieredCompilation>false</TieredCompilation>
155
<EventSourceSupport>true</EventSourceSupport>
166
<OptimizationPreference>Speed</OptimizationPreference>

0 commit comments

Comments
 (0)