Skip to content

Commit

Permalink
Fixed IsTieredJitEnabled check in netcoreapp2.x.
Browse files Browse the repository at this point in the history
  • Loading branch information
timcassell committed Apr 28, 2024
1 parent f6a4194 commit 2548395
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BenchmarkDotNet/Portability/RuntimeInformation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ private static bool IsAotMethod()
// Disabled by default in netcoreapp2.X, check if it's enabled.
? Environment.GetEnvironmentVariable("COMPlus_TieredCompilation") == "1"
|| Environment.GetEnvironmentVariable("DOTNET_TieredCompilation") == "1"
|| (AppContext.TryGetSwitch("System.Runtime.TieredCompilation", out bool isEnabled) && isEnabled)
|| (AppContext.TryGetSwitch("System.Runtime.TieredCompilation", out bool isEnabled) && !isEnabled)
// Enabled by default in netcoreapp3.0+, check if it's disabled.
: Environment.GetEnvironmentVariable("COMPlus_TieredCompilation") != "0"
&& Environment.GetEnvironmentVariable("DOTNET_TieredCompilation") != "0"
Expand Down

0 comments on commit 2548395

Please sign in to comment.