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