don't use r2r images when the profiler requests that ngen images are disabled
authorDavid Mason <davmason@microsoft.com>
Tue, 25 Jul 2017 22:56:42 +0000 (15:56 -0700)
committerDavid Mason <davmason@microsoft.com>
Wed, 26 Jul 2017 01:05:02 +0000 (18:05 -0700)
src/vm/readytoruninfo.cpp

index b85cf9a..56cfb60 100644 (file)
@@ -348,7 +348,9 @@ BOOL ReadyToRunInfo::IsReadyToRunEnabled()
     WRAPPER_NO_CONTRACT;
 
     static ConfigDWORD configReadyToRun;
-    return configReadyToRun.val(CLRConfig::EXTERNAL_ReadyToRun);
+    return configReadyToRun.val(CLRConfig::EXTERNAL_ReadyToRun) && 
+            !(CORProfilerDisableAllNGenImages()) && 
+            !(CORProfilerUseProfileImages());
 }
 
 // A log file to record success/failure of R2R loads. s_r2rLogFile can have the following values: