Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Commit

Permalink
don't use r2r images when the profiler requests that ngen images are …
Browse files Browse the repository at this point in the history
…disabled (#13349)
  • Loading branch information
davmason authored and jkotas committed Aug 17, 2017
1 parent 47a4f8e commit 94d4aa4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/vm/readytoruninfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,12 @@ PTR_ReadyToRunInfo ReadyToRunInfo::Initialize(Module * pModule, AllocMemTracker
return NULL;
}

if (CORProfilerDisableAllNGenImages() || CORProfilerUseProfileImages())
{
DoLog("Ready to Run disabled - profiler disabled native images");
return NULL;
}

if (g_pConfig->ExcludeReadyToRun(pModule->GetSimpleName()))
{
DoLog("Ready to Run disabled - module on exclusion list");
Expand Down

0 comments on commit 94d4aa4

Please sign in to comment.