"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "mono/metadata/icall.c" between
mono-6.8.0.105.tar.xz and mono-6.8.0.123.tar.xz

About:

icall.c  (mono-6.8.0.105.tar.xz):icall.c  (mono-6.8.0.123.tar.xz)
skipping to change at line 6364 skipping to change at line 6364
if (!mono_merp_enabled ()) if (!mono_merp_enabled ())
g_error ("Cannot send telemetry without registering parameters fi rst"); g_error ("Cannot send telemetry without registering parameters fi rst");
pid_t crashed_pid = getpid (); pid_t crashed_pid = getpid ();
MonoStackHash hashes; MonoStackHash hashes;
memset (&hashes, 0, sizeof (MonoStackHash)); memset (&hashes, 0, sizeof (MonoStackHash));
hashes.offset_free_hash = portable_hash; hashes.offset_free_hash = portable_hash;
hashes.offset_rich_hash = unportable_hash; hashes.offset_rich_hash = unportable_hash;
// Tells mono that we want to send the HANG EXC_TYPE. const char *signal = "MANAGED_EXCEPTION";
const char *signal = "SIGTERM";
gboolean success = mono_merp_invoke (crashed_pid, signal, payload, &hashe s); gboolean success = mono_merp_invoke (crashed_pid, signal, payload, &hashe s);
if (!success) { if (!success) {
//g_assert_not_reached (); //g_assert_not_reached ();
mono_error_set_generic_error (error, "System", "Exception", "We w ere unable to start the Microsoft Error Reporting client."); mono_error_set_generic_error (error, "System", "Exception", "We w ere unable to start the Microsoft Error Reporting client.");
} }
#else #else
// Icall has platform check in managed too. // Icall has platform check in managed too.
g_assert_not_reached (); g_assert_not_reached ();
#endif #endif
skipping to change at line 7660 skipping to change at line 7659
} }
void void
ves_icall_System_Environment_FailFast (MonoStringHandle message, MonoExceptionHa ndle exception, MonoStringHandle errorSource, MonoError *error) ves_icall_System_Environment_FailFast (MonoStringHandle message, MonoExceptionHa ndle exception, MonoStringHandle errorSource, MonoError *error)
{ {
if (MONO_HANDLE_IS_NULL (message)) { if (MONO_HANDLE_IS_NULL (message)) {
g_warning ("CLR: Managed code called FailFast without specifying a reason."); g_warning ("CLR: Managed code called FailFast without specifying a reason.");
} else { } else {
char *msg = mono_string_handle_to_utf8 (message, error); char *msg = mono_string_handle_to_utf8 (message, error);
g_warning ("CLR: Managed code called FailFast, saying \"%s\"", ms g); g_warning ("CLR: Managed code called FailFast, saying \"%s\"", ms g);
#ifndef DISABLE_CRASH_REPORTING
char *old_msg = mono_crash_save_failfast_msg (msg);
g_free (old_msg);
#else
g_free (msg); g_free (msg);
#endif
} }
if (!MONO_HANDLE_IS_NULL (exception)) { if (!MONO_HANDLE_IS_NULL (exception)) {
mono_print_unhandled_exception_internal ((MonoObject *) MONO_HAND LE_RAW (exception)); mono_print_unhandled_exception_internal ((MonoObject *) MONO_HAND LE_RAW (exception));
} }
// NOTE: While this does trigger WER on Windows it doesn't quite provide all the // NOTE: While this does trigger WER on Windows it doesn't quite provide all the
// information in the error dump that CoreCLR would. On Windows 7+ we sho uld call // information in the error dump that CoreCLR would. On Windows 7+ we sho uld call
// RaiseFailFastException directly instead of relying on the C runtime do ing it // RaiseFailFastException directly instead of relying on the C runtime do ing it
// for us and pass it as much information as possible. On Windows 8+ we c an also // for us and pass it as much information as possible. On Windows 8+ we c an also
 End of changes. 3 change blocks. 
2 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)