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

Commit 94d4aa4

Browse files
davmasonjkotas
authored andcommitted
don't use r2r images when the profiler requests that ngen images are disabled (#13349)
1 parent 47a4f8e commit 94d4aa4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/vm/readytoruninfo.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,12 @@ PTR_ReadyToRunInfo ReadyToRunInfo::Initialize(Module * pModule, AllocMemTracker
483483
return NULL;
484484
}
485485

486+
if (CORProfilerDisableAllNGenImages() || CORProfilerUseProfileImages())
487+
{
488+
DoLog("Ready to Run disabled - profiler disabled native images");
489+
return NULL;
490+
}
491+
486492
if (g_pConfig->ExcludeReadyToRun(pModule->GetSimpleName()))
487493
{
488494
DoLog("Ready to Run disabled - module on exclusion list");

0 commit comments

Comments
 (0)