43 references to RhFailFastReason
System.Private.CoreLib (43)
src\runtime\src\coreclr\nativeaot\Runtime.Base\src\System\Runtime\CachedInterfaceDispatch.cs (1)
85
EH.FallbackFailFast(
RhFailFastReason
.InternalError, null);
src\runtime\src\coreclr\nativeaot\Runtime.Base\src\System\Runtime\ExceptionHandling.cs (15)
85
internal static void FallbackFailFast(
RhFailFastReason
reason, object? unhandledException)
105
internal static void FailFastViaClasslib(
RhFailFastReason
reason, object? unhandledException,
123
((delegate*<
RhFailFastReason
, object, IntPtr, IntPtr, void>)pFailFastFunction)
205
RhFailFastReason
reason, object unhandledException, IntPtr classlibAddress, ref ExInfo exInfo)
232
((delegate*<
RhFailFastReason
, object, IntPtr, void*, void>)pFailFastFunction)
342
FailFastViaClasslib(
RhFailFastReason
.InternalError, null, address);
375
FailFastViaClasslib(
RhFailFastReason
.InternalError, null, (IntPtr)pEEType);
658
FailFastViaClasslib(
RhFailFastReason
.InternalError, null, faultingCodeAddress);
670
FallbackFailFast(
RhFailFastReason
.InternalError, null);
713
FallbackFailFast(
RhFailFastReason
.InternalError, null);
751
FallbackFailFast(
RhFailFastReason
.InternalError, null);
862
RhFailFastReason
.UnhandledException,
965
FallbackFailFast(
RhFailFastReason
.InternalError, null);
1253
FailFastViaClasslib(
RhFailFastReason
.UnhandledExceptionFromPInvoke, null, PInvokeCallsiteReturnAddr);
1258
FailFastViaClasslib(
RhFailFastReason
.UnhandledExceptionFromPInvoke, null, classlibBreadcrumb);
src\runtime\src\libraries\System.Private.CoreLib\src\System\AppContext.cs (1)
115
RuntimeExceptionHelpers.SerializeCrashInfo(System.Runtime.
RhFailFastReason
.UnhandledException, (e as Exception)?.Message, e as Exception);
System\CrashInfo.cs (7)
60
public void Open(
RhFailFastReason
reason, ulong crashingThreadId, string message)
100
private bool WriteHeader(
RhFailFastReason
reason, ulong crashingThreadId, string message)
118
RhFailFastReason
.AssertionFailure or
119
RhFailFastReason
.EnvironmentFailFast => CrashReason.EnvironmentFailFast,
120
RhFailFastReason
.InternalError => CrashReason.InternalFailFast,
121
RhFailFastReason
.UnhandledException or
122
RhFailFastReason
.UnhandledExceptionFromPInvoke => CrashReason.UnhandledException,
System\Environment.NativeAot.cs (1)
46
RuntimeExceptionHelpers.FailFast(message, exception, errorSource: errorSource, reason:
RhFailFastReason
.AssertionFailure);
System\RuntimeExceptionHelpers.cs (18)
134
private static string GetStringForFailFastReason(
RhFailFastReason
reason) => reason switch
136
RhFailFastReason
.InternalError => "Runtime internal error",
137
RhFailFastReason
.UnhandledException => "Unhandled exception: a managed exception was not handled before reaching unmanaged code",
138
RhFailFastReason
.UnhandledExceptionFromPInvoke => "Unhandled exception: an unmanaged exception was thrown out of a managed-to-native transition",
139
RhFailFastReason
.EnvironmentFailFast => "Environment.FailFast was called",
140
RhFailFastReason
.AssertionFailure => "Assertion failure",
148
FailFast(exception: exception, reason:
RhFailFastReason
.UnhandledException);
155
internal static void RuntimeFailFast(
RhFailFastReason
reason, Exception? exception, IntPtr pExAddress, IntPtr pExContext)
199
internal static void SerializeCrashInfo(
RhFailFastReason
reason, string? message, Exception? exception)
236
RhFailFastReason
reason =
RhFailFastReason
.EnvironmentFailFast,
260
Internal.Console.Error.Write(((exception == null) || (reason is
RhFailFastReason
.EnvironmentFailFast or
RhFailFastReason
.AssertionFailure)) ?
275
if (errorSource == null && message == null && (exception == null || reason is
RhFailFastReason
.EnvironmentFailFast))
281
if (reason is
RhFailFastReason
.EnvironmentFailFast)
286
if ((exception != null) && (reason is not
RhFailFastReason
.AssertionFailure))
333
RhFailFastReason
.EnvironmentFailFast => HResults.COR_E_FAILFAST,
334
RhFailFastReason
.InternalError => HResults.COR_E_EXECUTIONENGINE,