diff options
Diffstat (limited to 'src/vm/domainfile.cpp')
-rw-r--r-- | src/vm/domainfile.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vm/domainfile.cpp b/src/vm/domainfile.cpp index c0619f49e0..7d25cdc19d 100644 --- a/src/vm/domainfile.cpp +++ b/src/vm/domainfile.cpp @@ -897,6 +897,7 @@ BOOL DomainFile::IsZapRequired() g_pConfig->RequireZaps() == EEConfig::REQUIRE_ZAPS_SUPPORTED) return FALSE; +#ifdef FEATURE_NATIVE_IMAGE_GENERATION if (IsCompilationProcess()) { // Ignore the assembly being ngened. @@ -919,6 +920,7 @@ BOOL DomainFile::IsZapRequired() if (fileIsBeingNGened) return FALSE; } +#endif return TRUE; } @@ -997,6 +999,7 @@ void DomainFile::ClearNativeImageStress() // Different app-domains should make different decisions hash ^= HashString(this->GetAppDomain()->GetFriendlyName()); +#ifdef FEATURE_NATIVE_IMAGE_GENERATION // Since DbgRandomOnHashAndExe() is not so random under ngen.exe, also // factor in the module being compiled if (this->GetAppDomain()->IsCompilationDomain()) @@ -1006,6 +1009,7 @@ void DomainFile::ClearNativeImageStress() if (module) hash ^= HashStringA(module->GetSimpleName()); } +#endif if (DbgRandomOnHashAndExe(hash, float(stressPercentage)/100)) { |