From c116616675f99afcba25ade9fd4d73ad8b6fd318 Mon Sep 17 00:00:00 2001 From: Mike McLaughlin Date: Fri, 2 Aug 2024 13:16:00 -0700 Subject: [PATCH] Fix legacy exception handling dump generation on background threads (#105830) Issue: https://github.com/dotnet/runtime/issues/103000 --- src/coreclr/vm/excep.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/coreclr/vm/excep.cpp b/src/coreclr/vm/excep.cpp index 19ddfbc86d7a1..1942aab2d79a7 100644 --- a/src/coreclr/vm/excep.cpp +++ b/src/coreclr/vm/excep.cpp @@ -5199,6 +5199,10 @@ BOOL NotifyAppDomainsOfUnhandledException( GCPROTECT_END(); +#ifdef HOST_WINDOWS + CreateCrashDumpIfEnabled(); +#endif + #ifdef _DEBUG // Do not care about lock check for unhandled exception. while (unbreakableLockCount)