Remove init_count zeroing from PAL cleanup
authorJan Vorlicek <janvorli@microsoft.com>
Thu, 7 Mar 2019 15:10:55 +0000 (16:10 +0100)
committerJan Vorlicek <janvorli@microsoft.com>
Thu, 7 Mar 2019 15:10:55 +0000 (16:10 +0100)
commit0efe46946979282aca580becc27f86545f7d9109
tree5d44f0f8dec99f40fb9adc41102de91ee41c3bab
parent4cd8c37350a81d1bd00f86b52b3964542b8a7da7
Remove init_count zeroing from PAL cleanup

Setting the init_count to 0 in the PALCommonCleanup was causing
intermittent crashes in the GC stress C tests on Linux with
SIGILL. The reason is that the signal handlers do nothing and call a
previous handler in case the PAL is not initialized, which is indicated
by the init_count being zero.

To fix that issue, I have removed the init_count zeroing at process
exit, since the PAL and runtime is still capable of handling the
signals.

Commit migrated from https://github.com/dotnet/coreclr/commit/638b1c1eeaf49282dcb036376ae6e35a7b62aee3
src/coreclr/src/pal/src/init/pal.cpp