Store unhandled exception info on stack in Native AOT (#84871)
authorAndy Gocke <angocke@microsoft.com>
Thu, 27 Apr 2023 16:56:15 +0000 (09:56 -0700)
committerGitHub <noreply@github.com>
Thu, 27 Apr 2023 16:56:15 +0000 (09:56 -0700)
commit5d65dd634aa91afe76f65e17fffb9d672cb991ef
tree7398126362e71385b5291ca8ae778e5718f6e483
parent75c855e0e0eb538681aa3d7a1949ed32a572eb52
Store unhandled exception info on stack in Native AOT (#84871)

Allocates a span on the stack to hold the ToString of the exception, as well as a CrashRecord which contains a unique cookie that can be used to find the exception info.

Fixes #84636
src/coreclr/nativeaot/Runtime/threadstore.cpp
src/coreclr/nativeaot/Runtime/threadstore.h
src/coreclr/nativeaot/System.Private.CoreLib/src/System/Runtime/RuntimeImports.cs
src/coreclr/nativeaot/System.Private.CoreLib/src/System/RuntimeExceptionHelpers.cs