Various createdump fixes. Smaller MacOS dump size, better logging/stats, misc cleanup...
authorMike McLaughlin <mikem@microsoft.com>
Tue, 12 Jul 2022 06:43:40 +0000 (23:43 -0700)
committerGitHub <noreply@github.com>
Tue, 12 Jul 2022 06:43:40 +0000 (23:43 -0700)
commitf7671633006a5ce363c20b3ec999f3ed75c2f9c4
treec9a3c48e354a6b3a2747d10a78148f41a27cfc61
parentb4dd16b4418de9b3af08ae85f0f3653e55dc420a
Various createdump fixes. Smaller MacOS dump size, better logging/stats, misc cleanup, etc. (#71569)

* Fix where CombineMemoryRegions is called and perf fix for PAGE_SIZE on MacOS M1

* Remove MEMORY_REGION_FLAG_MEMORY_BACKED flags because it was always set now

* Add better memory tracing and memory region stats

Fix MacOS native module regions when overlapping with existing.

Fix MacOS adding the managed modules to the module mapping list before the "other mappings" is built.

* Don't add share_mode == SM_EMPTY regions

* Add crashreport success status message for VS4Mac

* Launch createdump from SIGTERM handler directly to reduce the time it takes to get the crash report/dump for VS4Mac

* Fix issue https://github.com/dotnet/runtime/issues/71561

* Add target process terminated/alive message

* Add total createdump elapsed time message
15 files changed:
src/coreclr/debug/createdump/crashinfo.cpp
src/coreclr/debug/createdump/crashinfo.h
src/coreclr/debug/createdump/crashinfomac.cpp
src/coreclr/debug/createdump/crashinfounix.cpp
src/coreclr/debug/createdump/crashreportwriter.cpp
src/coreclr/debug/createdump/createdumpunix.cpp
src/coreclr/debug/createdump/datatarget.cpp
src/coreclr/debug/createdump/dumpwriterelf.cpp
src/coreclr/debug/createdump/dumpwritermacho.cpp
src/coreclr/debug/createdump/main.cpp
src/coreclr/debug/createdump/memoryregion.h
src/coreclr/debug/createdump/threadinfo.cpp
src/coreclr/pal/src/exception/signal.cpp
src/coreclr/pal/src/thread/process.cpp
src/coreclr/vm/exceptionhandling.cpp