summaryrefslogtreecommitdiff
path: root/src/vm/dynamicmethod.cpp
diff options
context:
space:
mode:
authorJan Kotas <jkotas@microsoft.com>2015-03-17 07:32:03 -0700
committerJan Kotas <jkotas@microsoft.com>2015-03-17 07:32:03 -0700
commite9ddb2e5667120f27d92e38f391e7d74ebf5a9f8 (patch)
tree93a8469e1cb02aef602d688b363182ccc2786d44 /src/vm/dynamicmethod.cpp
parent89909d343e63707c326f2f1422c6c5dc87a30d82 (diff)
downloadcoreclr-e9ddb2e5667120f27d92e38f391e7d74ebf5a9f8.tar.gz
coreclr-e9ddb2e5667120f27d92e38f391e7d74ebf5a9f8.tar.bz2
coreclr-e9ddb2e5667120f27d92e38f391e7d74ebf5a9f8.zip
Fix some of the issues found by Viva64 static analyser
Diffstat (limited to 'src/vm/dynamicmethod.cpp')
-rw-r--r--src/vm/dynamicmethod.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/vm/dynamicmethod.cpp b/src/vm/dynamicmethod.cpp
index 4ee41faecd..662c3893c7 100644
--- a/src/vm/dynamicmethod.cpp
+++ b/src/vm/dynamicmethod.cpp
@@ -799,13 +799,13 @@ void HostCodeHeap::EnumMemoryRegions(CLRDataEnumMemoryFlags flags)
size_t size = dac_cast<TADDR>(m_pLastAvailableCommittedAddr) - addr;
#if (_DEBUG)
- // Test hook: when testing on debug builds, we want an easy way to test that the while
- // correctly terminates in the face of ridiculous stuff from the target.
- if (CLRConfig::GetConfigValue(CLRConfig::INTERNAL_DumpGeneration_IntentionallyCorruptDataFromTarget) == 1)
- {
- // Pretend the object is very large.
- size |= 0xefefefef << 28;
- }
+ // Test hook: when testing on debug builds, we want an easy way to test that the while
+ // correctly terminates in the face of ridiculous stuff from the target.
+ if (CLRConfig::GetConfigValue(CLRConfig::INTERNAL_DumpGeneration_IntentionallyCorruptDataFromTarget) == 1)
+ {
+ // Pretend the object is very large.
+ size |= 0xf0000000;
+ }
#endif // (_DEBUG)
while (size)