Modify zaprequire switch to allow Ready-to-Run images
authorJohn Chen (CLR) <jochen@microsoft.com>
Sat, 5 Mar 2016 03:38:55 +0000 (19:38 -0800)
committerJohn Chen (CLR) <jochen@microsoft.com>
Sat, 5 Mar 2016 18:17:48 +0000 (10:17 -0800)
Address issue dotnet/coreclr#3527.

Commit migrated from https://github.com/dotnet/coreclr/commit/a6de1e4296cb486bdb41724e4734faace158319e

src/coreclr/src/vm/domainfile.cpp

index 4285024..0c6e4fc 100644 (file)
@@ -943,6 +943,11 @@ void DomainFile::CheckZapRequired()
     if (m_pFile->HasNativeImage() || !IsZapRequired())
         return;
 
+#ifdef FEATURE_READYTORUN
+    if(m_pFile->GetLoaded()->HasReadyToRunHeader())
+        return;
+#endif
+
     // Flush any log messages
     GetFile()->FlushExternalLog();