diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-09-22 12:15:27 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-22 12:15:27 +0200 |
| commit | faf13dd112bf0f455e5311cb1acc9db514defe78 (patch) | |
| tree | c00d6b91fbffb512fb8e3c53265dc1952395cb9b /compiler/rustc_codegen_llvm/src | |
| parent | 06608c7860358eb995da112cbbf66f751feddc18 (diff) | |
| parent | 31cfa4a95611b1151bcdee213d39e2edbeee6c19 (diff) | |
| download | rust-faf13dd112bf0f455e5311cb1acc9db514defe78.tar.gz rust-faf13dd112bf0f455e5311cb1acc9db514defe78.zip | |
Rollup merge of #116038 - the8472:panic-on-sched_getaffinity-bug, r=cuviper
Fall back to _SC_NPROCESSORS_ONLN if sched_getaffinity returns an empty mask Followup to #115946 A gentler fix for #115868, one that doesn't panic, [suggested on zulip](https://rust-lang.zulipchat.com/#narrow/stream/259402-t-libs.2Fmeetings/topic/Meeting.202023-09-19/near/391942927) In that situation - on the buggy kernel versions - a zero-mask means no affinities have been set so `_SC_NPROCESSORS_ONLN` provides the right value.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
