Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/coreclr/pal/src/thread/process.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2444,8 +2444,11 @@ PROCCreateCrashDump(
size_t previousThreadId = InterlockedCompareExchange(&g_crashingThreadId, currentThreadId, 0);
if (previousThreadId != 0)
{
// Should never reenter or recurse
_ASSERTE(previousThreadId != currentThreadId);
// Return error if reenter this code
if (previousThreadId == currentThreadId)
{
return false;
}

// The first thread generates the crash info and any other threads are blocked
while (true)
Expand Down
Loading