Add recursion / thread interaction guard in LogInfoForFatalError (#46561)
authorTomáš Rylek <trylek@microsoft.com>
Sun, 10 Jan 2021 21:06:44 +0000 (22:06 +0100)
committerGitHub <noreply@github.com>
Sun, 10 Jan 2021 21:06:44 +0000 (22:06 +0100)
commitaf1e7ee4678d2322a53efce43bc3b6ee16b7f715
tree23cdb207b0ed633ea2afed2a9bbd1deb07e31a5a
parent9c12a1f7a108ee0753faf486baf96f8fe685d829
Add recursion / thread interaction guard in LogInfoForFatalError (#46561)

Based on local instrumentation I introduced while investigating
issues related to the switch-over to compile System.Private.CoreLib
using Crossgen2 I'm proposing to harden fatal exception handling
against nested and concurrent fatal error occurrences.

Thanks

Tomas
src/coreclr/vm/eepolicy.cpp
src/tests/baseservices/exceptions/simple/ParallelCrash.cs [new file with mode: 0644]
src/tests/baseservices/exceptions/simple/ParallelCrash.csproj [new file with mode: 0644]
src/tests/baseservices/exceptions/simple/ParallelCrashMainThread.csproj [new file with mode: 0644]
src/tests/baseservices/exceptions/simple/ParallelCrashWorkerThreads.csproj [new file with mode: 0644]