-
Notifications
You must be signed in to change notification settings - Fork 13.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a couple of missing ensure_sufficient_stacks
#136352
Conversation
r? compiler-errors @bors r+ rollup=never |
Thanks! I've confirmed on |
@bors p=10 (rollup-scheduling, this unblocks a beta backport) |
Add a couple of missing `ensure_sufficient_stacks` r? `@saethlin` I hope you didn't spend time on this already. (I couldn't sleep, opened `check_tail_calls`, there was a single call where it could happen, might as well fix it) This PR adds a couple of missing `ensure_sufficient_stack`s: - one in `check_tail_calls` that prevented the rust-lang#135709 backport on some targets. - after that was fixed, the test still didn't pass starting at 4MB, so I also added one in `check_unsafety` and that made it pass. I didn't add an `rmake` test purposefully limiting the min stack size on `issue-74564-if-expr-stack-overflow.rs`, but we could if we wanted to. On `apple-aarch64-darwin`, this is enough to make `RUST_MIN_STACK=$((1024*1024*3)) ./x test tests/ui --test-args tests/ui/issues/issue-74564-if-expr-stack-overflow.rs` pass for me locally, and it does stack overflow otherwise.
💔 Test failed - checks-actions |
@bors retry (network failure?) |
@bors retry (maybe network failure?) |
☀️ Test successful - checks-actions |
Finished benchmarking commit (f2c4ccd): comparison URL. Overall result: ❌ regressions - please read the text belowOur benchmarks found a performance regression caused by this PR. Next Steps:
@rustbot label: +perf-regression Instruction countThis is the most reliable metric that we have; it was used to determine the overall result at the top of this comment. However, even this metric can sometimes exhibit noise.
Max RSS (memory usage)Results (primary 4.3%, secondary 3.9%)This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 777.808s -> 777.679s (-0.02%) |
This doesn't look like noise. It is quite small however, is on secondary benchmarks only and has no cycles regressions. It's more of a bugfix than a feature, preventing a p-critical fix from being backported. So it seems fine to me. |
Marking as triaged for reasons specified in #136352 (comment) @rustbot label: +perf-regression-triaged |
[beta] backports - Ensure that we don't try to access fields on a non-struct pattern type rust-lang#135222 - Do not include GCC source code in source tarballs rust-lang#135658 - Temporarily bring back `Rvalue::Len` rust-lang#135709 - Add a couple of missing `ensure_sufficient_stacks` rust-lang#136352 - Enable kernel sanitizers for aarch64-unknown-none-softfloat rust-lang#135905 r? cuviper
r? @saethlin I hope you didn't spend time on this already.
(I couldn't sleep, opened
check_tail_calls
, there was a single call where it could happen, might as well fix it)This PR adds a couple of missing
ensure_sufficient_stack
s:check_tail_calls
that prevented the Temporarily bring backRvalue::Len
#135709 backport on some targets.check_unsafety
and that made it pass.I didn't add an
rmake
test purposefully limiting the min stack size onissue-74564-if-expr-stack-overflow.rs
, but we could if we wanted to.On
apple-aarch64-darwin
, this is enough to makeRUST_MIN_STACK=$((1024*1024*3)) ./x test tests/ui --test-args tests/ui/issues/issue-74564-if-expr-stack-overflow.rs
pass for me locally, and it does stack overflow otherwise.