Skip to content

Commit b9444f2

Browse files
authored
Rework exception processing (#2783)
***NO_CI***
1 parent 3dba81d commit b9444f2

File tree

2 files changed

+130
-79
lines changed

2 files changed

+130
-79
lines changed

src/CLR/CorLib/corlib_native_System_Exception.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,10 @@ HRESULT Library_corlib_native_System_Exception::SetStackTrace(CLR_RT_HeapBlock &
240240
if (!g_CLR_RT_ExecutionEngine.m_fShuttingDown)
241241
#endif
242242
{
243-
CLR_RT_DUMP::EXCEPTION(*stack, ref);
243+
if (CLR_EE_DBG_IS_NOT(NoStackTraceInExceptions))
244+
{
245+
CLR_RT_DUMP::EXCEPTION(*stack, ref);
246+
}
244247
}
245248
}
246249

0 commit comments

Comments
 (0)