Skip to content

Commit 8899f28

Browse files
authored
Fix NativeAOT ServerGC benchmarks (#1869)
dotnet/sdk#33309 enables GarbageCollectionAdaptationMode=1 by default for ASP.NET NativeAOT apps that use ServerGarbageCollection. Our Server GC benchmarks want to use the "normal" Server GC, so explicitly set the environment variable so they aren't using the adaptive mode.
1 parent 97023a8 commit 8899f28

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build/nativeaot-scenarios.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ parameters:
3737

3838
- displayName: Goldilocks Stage 1 (NativeAOT - Server GC)
3939
# workaround https://github.com/dotnet/runtime/issues/81382 by explicitly referencing a Microsoft.Dotnet.ILCompiler version
40-
arguments: --scenario basicminimalapipublishaot $(goldilocksJobs) --property scenario=Stage1AotServerGC --property publish=nativeaot --application.packageReferences \"Microsoft.Dotnet.ILCompiler=$(MicrosoftNETCoreAppPackageVersion)\"
40+
arguments: --scenario basicminimalapipublishaot $(goldilocksJobs) --property scenario=Stage1AotServerGC --property publish=nativeaot --application.packageReferences \"Microsoft.Dotnet.ILCompiler=$(MicrosoftNETCoreAppPackageVersion)\" --application.environmentVariables DOTNET_GCDynamicAdaptationMode=0
4141
condition: 'true'
4242

4343
- displayName: Goldilocks Stage 1 (NativeAOT - Workstation GC)
@@ -73,7 +73,7 @@ parameters:
7373

7474
- displayName: Goldilocks Stage 2 (NativeAOT - Server GC)
7575
# workaround https://github.com/dotnet/runtime/issues/81382 by explicitly referencing a Microsoft.Dotnet.ILCompiler version
76-
arguments: --scenario todosapipublishaot $(goldilocksJobs) --property scenario=Stage2AotServerGC --property publish=nativeaot --application.packageReferences \"Microsoft.Dotnet.ILCompiler=$(MicrosoftNETCoreAppPackageVersion)\"
76+
arguments: --scenario todosapipublishaot $(goldilocksJobs) --property scenario=Stage2AotServerGC --property publish=nativeaot --application.packageReferences \"Microsoft.Dotnet.ILCompiler=$(MicrosoftNETCoreAppPackageVersion)\" --application.environmentVariables DOTNET_GCDynamicAdaptationMode=0
7777
condition: 'true'
7878

7979
- displayName: Goldilocks Stage 2 (NativeAOT - Workstation GC)
@@ -109,7 +109,7 @@ parameters:
109109

110110
- displayName: Goldilocks gRPC Stage 1 (NativeAOT - Server GC)
111111
# workaround https://github.com/dotnet/runtime/issues/81382 by explicitly referencing a Microsoft.Dotnet.ILCompiler version
112-
arguments: --scenario basicgrpcpublishaot $(goldilocksJobs) --property scenario=Stage1GrpcAotServerGC --property publish=nativeaot --application.packageReferences \"Microsoft.Dotnet.ILCompiler=$(MicrosoftNETCoreAppPackageVersion)\"
112+
arguments: --scenario basicgrpcpublishaot $(goldilocksJobs) --property scenario=Stage1GrpcAotServerGC --property publish=nativeaot --application.packageReferences \"Microsoft.Dotnet.ILCompiler=$(MicrosoftNETCoreAppPackageVersion)\" --application.environmentVariables DOTNET_GCDynamicAdaptationMode=0
113113
condition: 'true'
114114

115115
- displayName: Goldilocks gRPC Stage 1 (NativeAOT - Workstation GC)

0 commit comments

Comments
 (0)