Skip to content

Commit

Permalink
Mark stress log critical section as compatible with shutdown (#44937)
Browse files Browse the repository at this point in the history
Fixes: #43571
  • Loading branch information
trylek authored Nov 19, 2020
1 parent 3c5b4a6 commit 3f97ea6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coreclr/src/utilcode/stresslog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ void StressLog::Initialize(unsigned facilities, unsigned level, unsigned maxByt
return;
}

theLog.lock = ClrCreateCriticalSection(CrstStressLog,(CrstFlags)(CRST_UNSAFE_ANYMODE|CRST_DEBUGGER_THREAD));
theLog.lock = ClrCreateCriticalSection(CrstStressLog,(CrstFlags)(CRST_UNSAFE_ANYMODE|CRST_DEBUGGER_THREAD|CRST_TAKEN_DURING_SHUTDOWN));
// StressLog::Terminate is going to free memory.
if (maxBytesPerThread < STRESSLOG_CHUNK_SIZE)
{
Expand Down

0 comments on commit 3f97ea6

Please sign in to comment.