From e7b0da9f7ac385ab79806141a15976c18b9c8f2d Mon Sep 17 00:00:00 2001 From: goaaats Date: Wed, 22 Jun 2022 14:29:03 +0200 Subject: [PATCH] chore: enable dynamic PGO for coreclr --- lib/CoreCLR/boot.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/CoreCLR/boot.cpp b/lib/CoreCLR/boot.cpp index e620f3162..0d0db4e31 100644 --- a/lib/CoreCLR/boot.cpp +++ b/lib/CoreCLR/boot.cpp @@ -44,6 +44,11 @@ int InitializeClrAndGetEntryPoint( SetEnvironmentVariable(L"DOTNET_legacyCorruptedStateExceptionsPolicy", L"1"); SetEnvironmentVariable(L"COMPLUS_ForceENC", L"1"); + // Enable Dynamic PGO + SetEnvironmentVariable(L"DOTNET_TieredPGO", L"1"); + SetEnvironmentVariable(L"DOTNET_TC_QuickJitForLoops", L"1"); + SetEnvironmentVariable(L"DOTNET_ReadyToRun", L"1"); + #if NDEBUG // This might fix extremely bad performance in some algorithms on insider builds SetEnvironmentVariable(L"COMPlus_ETWEnabled", L"0");