Fix MacOS createdump testing failures (#42357)
authorMike McLaughlin <mikem@microsoft.com>
Thu, 17 Sep 2020 16:53:07 +0000 (09:53 -0700)
committerGitHub <noreply@github.com>
Thu, 17 Sep 2020 16:53:07 +0000 (09:53 -0700)
commita747feefaa3b0c5c7e33ee42ba94e00927e54160
treea9c7e8a9649b9aff279845c85795b23c560e2b9b
parent522854696fe2c1260d0563659154a40ddf829d54
Fix MacOS createdump testing failures (#42357)

Fix MacOS createdump testing failures

There are a few things that are causing MacOS dumps not to be complete and causing the diagnostics SOS tests to fail:

1) The threads were completely stopped with the per thread suspend. Switch from thread_suspend to task_suspend.
2) .Stopping filtering out SM_EMPTY share_mode type memory regions. There are read/write sections that are needed in the dump by the tools
src/coreclr/src/debug/createdump/crashinfomac.cpp
src/coreclr/src/debug/createdump/memoryregion.h