about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/coverageinfo/mod.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-04-04 14:51:17 +0200
committerGitHub <noreply@github.com>2024-04-04 14:51:17 +0200
commitee5009e745b4088f8ef942ab9bcf6f28b7bbac0d (patch)
treee428d24e4b0591aa9b0674a648ab0fbc3a8d7313 /compiler/rustc_codegen_llvm/src/coverageinfo/mod.rs
parent504a78e2f24a7ce0e11116429c86c0be9553c79c (diff)
parent7b8f93ef4c2b01b6cc7656123301f0f5e322b603 (diff)
downloadrust-ee5009e745b4088f8ef942ab9bcf6f28b7bbac0d.tar.gz
rust-ee5009e745b4088f8ef942ab9bcf6f28b7bbac0d.zip
Rollup merge of #123389 - ChrisDenton:dont-panic-on-startup, r=joboet
Avoid panicking unnecessarily on startup

On Windows, in `lang_start` we add an exception handler to catch stack overflows and we also reserve some stack space for the handler. Both of these are useful but they're not strictly necessary. The standard library has to work without them (e.g. if Rust is used from a foreign entry point) and the negative effect of not doing them is limited (i.e. you don't get the friendly stack overflow message).

As we really don't want to panic pre-main unless absolutely necessary, it now won't panic on failure. I've added some debug assertions so as to avoid programmer error.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/coverageinfo/mod.rs')
0 files changed, 0 insertions, 0 deletions