Skip to content

Commit

Permalink
Mark stress log critical section as compatible with shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
trylek committed Nov 19, 2020
1 parent 4204aa9 commit 9d415ce
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 9d415ce

Please sign in to comment.