Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Don't catch/cleanup the exceptions from startup hooks.
  • Loading branch information
lambdageek committed Jan 17, 2023
commit b1f91825f1043746369070fb703afdaa447a3d8e
4 changes: 2 additions & 2 deletions src/mono/mono/metadata/object.c
Original file line number Diff line number Diff line change
Expand Up @@ -8139,8 +8139,8 @@ mono_runtime_run_startup_hooks (void)
if (!method)
return;
mono_runtime_invoke_checked (method, NULL, NULL, error);
// FIXME: the design doc says exceptions should terminate the host app.
mono_error_cleanup (error);
// runtime hooks design doc says not to catch exceptions from the hooks
mono_error_raise_exception_deprecated (error);
}

#if NEVER_DEFINED
Expand Down