summaryrefslogtreecommitdiff
path: root/src/vm/exinfo.cpp
diff options
context:
space:
mode:
authorJonghyun Park <parjong@gmail.com>2016-12-02 10:01:29 +0900
committerJan Kotas <jkotas@microsoft.com>2016-12-01 17:01:29 -0800
commit1a1da83f1750c45cfe6e62080608f328d9b36978 (patch)
treebe64dc1eed9e3fbf4e232a28bb47326f97a25d7b /src/vm/exinfo.cpp
parent731bb02df3aa410d69641226364fb52c3567faba (diff)
downloadcoreclr-1a1da83f1750c45cfe6e62080608f328d9b36978.tar.gz
coreclr-1a1da83f1750c45cfe6e62080608f328d9b36978.tar.bz2
coreclr-1a1da83f1750c45cfe6e62080608f328d9b36978.zip
[x86/Linux] Disable Watson-related code for non-Windows platforms (#8410)
Diffstat (limited to 'src/vm/exinfo.cpp')
-rw-r--r--src/vm/exinfo.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/vm/exinfo.cpp b/src/vm/exinfo.cpp
index 4cbc6d34c4..9e07cebaf3 100644
--- a/src/vm/exinfo.cpp
+++ b/src/vm/exinfo.cpp
@@ -76,9 +76,11 @@ void ExInfo::CopyAndClearSource(ExInfo *from)
// Finally, initialize the source ExInfo.
from->Init();
+#ifndef FEATURE_PAL
// Clear the Watson Bucketing information as well since they
// have been transferred over by the "memcpy" above.
from->GetWatsonBucketTracker()->Init();
+#endif // FEATURE_PAL
}
void ExInfo::Init()
@@ -136,8 +138,10 @@ ExInfo::ExInfo()
m_hThrowable = NULL;
Init();
+#ifndef FEATURE_PAL
// Init the WatsonBucketTracker
m_WatsonBucketTracker.Init();
+#endif // FEATURE_PAL
}
//*******************************************************************************
@@ -206,9 +210,11 @@ void ExInfo::UnwindExInfo(VOID* limit)
pPrevNestedInfo->DestroyExceptionHandle();
}
+ #ifndef FEATURE_PAL
// Free the Watson bucket details when ExInfo
// is being released
pPrevNestedInfo->GetWatsonBucketTracker()->ClearWatsonBucketDetails();
+ #endif // FEATURE_PAL
pPrevNestedInfo->m_StackTraceInfo.FreeStackTrace();
@@ -256,8 +262,10 @@ void ExInfo::UnwindExInfo(VOID* limit)
// We just do a basic Init of the current top ExInfo here.
Init();
+ #ifndef FEATURE_PAL
// Init the Watson buckets as well
GetWatsonBucketTracker()->ClearWatsonBucketDetails();
+ #endif // FEATURE_PAL
}
}
#endif // DACCESS_COMPILE