Serialize createdump core dump generation (#90130)
authorMike McLaughlin <mikem@microsoft.com>
Tue, 8 Aug 2023 03:12:16 +0000 (20:12 -0700)
committerGitHub <noreply@github.com>
Tue, 8 Aug 2023 03:12:16 +0000 (20:12 -0700)
commit05c5144d9a3c26ac7f3576776b62e29a64a4b7a8
treea5f46ee84c5a65331f398604fd7da4e71adc6109
parent39f4921c4a1e93ba8b71b8f7c98d85ffc17a2c3f
Serialize createdump core dump generation (#90130)

* Serialize createdump core dump generation

Only allow one thread at a time to generate a core dump.

Issue: https://github.com/dotnet/runtime/issues/82989

* Code review feedback. Move serializing code into PROCCreateCrashDump

* Code review feedback - put while (true) around poll()'s
src/coreclr/pal/src/exception/signal.cpp
src/coreclr/pal/src/include/pal/process.h
src/coreclr/pal/src/thread/process.cpp