diff options
author | Jan Kotas <jkotas@microsoft.com> | 2015-11-11 16:47:09 -0800 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2015-11-11 16:47:09 -0800 |
commit | 9b10bd324f8bf40efb521abd35031132572e2616 (patch) | |
tree | 87e17818e7e2581151b9d87f86086be6bb79d417 /src/vm/domainfile.cpp | |
parent | 077d5cb53bf9c0339cca6e2dc64e1d523987098d (diff) | |
download | coreclr-9b10bd324f8bf40efb521abd35031132572e2616.tar.gz coreclr-9b10bd324f8bf40efb521abd35031132572e2616.tar.bz2 coreclr-9b10bd324f8bf40efb521abd35031132572e2616.zip |
Improve FEATURE_NATIVE_IMAGE_GENERATION ifdefs
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)) { |