summaryrefslogtreecommitdiff
path: root/src/vm/ceeload.cpp
diff options
context:
space:
mode:
authorBrian Sullivan <briansul@microsoft.com>2017-06-06 11:06:20 -0700
committerBrian Sullivan <briansul@microsoft.com>2017-06-06 11:09:58 -0700
commit5a298a4ac8c0370c0c2417b56f58b97764c79238 (patch)
treee248da1687d6d9a223af3916d6f10dadd0d7d496 /src/vm/ceeload.cpp
parent794eca076a882fcd2639fa692ca457150940231b (diff)
downloadcoreclr-5a298a4ac8c0370c0c2417b56f58b97764c79238.tar.gz
coreclr-5a298a4ac8c0370c0c2417b56f58b97764c79238.tar.bz2
coreclr-5a298a4ac8c0370c0c2417b56f58b97764c79238.zip
Fixed the loading of ReadyToRun tuning native image
Corrected the new ifdef that prevented the loading of tuning/profiling ReadyToRun native images Commented out a costly precondition check, it is always true at all callsites.
Diffstat (limited to 'src/vm/ceeload.cpp')
-rw-r--r--src/vm/ceeload.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/vm/ceeload.cpp b/src/vm/ceeload.cpp
index ef56342e25..47810b7168 100644
--- a/src/vm/ceeload.cpp
+++ b/src/vm/ceeload.cpp
@@ -467,7 +467,7 @@ void Module::InitializeForProfiling()
}
else // ReadyToRun image
{
-#ifdef FEATURE_READYTORUN_COMPILER
+#ifdef FEATURE_READYTORUN
// We already setup the m_methodProfileList in the ReadyToRunInfo constructor
if (m_methodProfileList != nullptr)
{
@@ -12990,7 +12990,8 @@ idTypeSpec Module::LogInstantiatedType(TypeHandle typeHnd, ULONG flagNum)
// We can relax this if we allow a (duplicate) MethodTable to live
// in any module (which might be needed for ngen of generics)
#ifdef FEATURE_PREJIT
- PRECONDITION(this == GetPreferredZapModuleForTypeHandle(typeHnd));
+ // All callsites already do this...
+ // PRECONDITION(this == GetPreferredZapModuleForTypeHandle(typeHnd));
#endif
}
CONTRACT_END;