summaryrefslogtreecommitdiff
path: root/src/vm/jithelpers.cpp
diff options
context:
space:
mode:
authordanmosemsft <danmose@microsoft.com>2017-02-10 22:15:01 -0800
committerdanmosemsft <danmose@microsoft.com>2017-02-10 22:15:01 -0800
commit87f8b67a4ee90ef807927f5083e237cb88b34725 (patch)
tree2ad1316d160dd7746c20d1668f5e7a8bd2709bf3 /src/vm/jithelpers.cpp
parentb45b7e4eb467bca44f9d77959df0337bdcecbd3c (diff)
downloadcoreclr-87f8b67a4ee90ef807927f5083e237cb88b34725.tar.gz
coreclr-87f8b67a4ee90ef807927f5083e237cb88b34725.tar.bz2
coreclr-87f8b67a4ee90ef807927f5083e237cb88b34725.zip
Revert "Remove always defined FEATURE_CORRUPTING_EXCEPTIONS"
This reverts commit b0dab0d6de90a38dfbf0d6b2039a7b8f5269d802.
Diffstat (limited to 'src/vm/jithelpers.cpp')
-rw-r--r--src/vm/jithelpers.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vm/jithelpers.cpp b/src/vm/jithelpers.cpp
index c1b306fdc3..6d4fd897c4 100644
--- a/src/vm/jithelpers.cpp
+++ b/src/vm/jithelpers.cpp
@@ -5427,6 +5427,7 @@ HCIMPL1(void, IL_Throw, Object* obj)
}
}
+#ifdef FEATURE_CORRUPTING_EXCEPTIONS
if (!g_pConfig->LegacyCorruptedStateExceptionsPolicy())
{
// Within the VM, we could have thrown and caught a managed exception. This is done by
@@ -5441,6 +5442,7 @@ HCIMPL1(void, IL_Throw, Object* obj)
ThreadExceptionState *pExState = GetThread()->GetExceptionState();
pExState->SetLastActiveExceptionCorruptionSeverity(NotSet);
}
+#endif // FEATURE_CORRUPTING_EXCEPTIONS
RaiseTheExceptionInternalOnly(oref, FALSE);