Browse Source

[CSharp] Match AOT settings with JIT settings (#9430)

* [CSharp] Match AOT settings with JIT settings

JIT disables threadpool hillclimbing here: https://github.com/TechEmpower/FrameworkBenchmarks/blob/c0164be4be7c5ffca6b799b81e03eff6559bbb7a/frameworks/CSharp/aspnetcore/aspnetcore.dockerfile#L10C12-L10C32. AOT uses a different mechanism.

* Update Platform.csproj
Michal Strehovský 8 months ago
parent
commit
400a993a2d
1 changed files with 3 additions and 0 deletions
  1. 3 0
      frameworks/CSharp/aspnetcore/src/Platform/Platform.csproj

+ 3 - 0
frameworks/CSharp/aspnetcore/src/Platform/Platform.csproj

@@ -28,5 +28,8 @@
   <PropertyGroup Condition="$(PublishAot) == 'true'">
   <PropertyGroup Condition="$(PublishAot) == 'true'">
     <DefaultItemExcludes>$(MSBuildThisFileDirectory)Templates/**;$(DefaultItemExcludes)</DefaultItemExcludes>
     <DefaultItemExcludes>$(MSBuildThisFileDirectory)Templates/**;$(DefaultItemExcludes)</DefaultItemExcludes>
   </PropertyGroup>
   </PropertyGroup>
+  <ItemGroup Condition="$(PublishAot) == 'true'">
+    <RuntimeHostConfigurationOption Include="System.Threading.ThreadPool.HillClimbing.Disable" Value="true" />
+  </ItemGroup>
 
 
 </Project>
 </Project>