ソースを参照

[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ý 10 ヶ月 前
コミット
400a993a2d
1 ファイル変更3 行追加0 行削除
  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'">
     <DefaultItemExcludes>$(MSBuildThisFileDirectory)Templates/**;$(DefaultItemExcludes)</DefaultItemExcludes>
   </PropertyGroup>
+  <ItemGroup Condition="$(PublishAot) == 'true'">
+    <RuntimeHostConfigurationOption Include="System.Threading.ThreadPool.HillClimbing.Disable" Value="true" />
+  </ItemGroup>
 
 </Project>