Increase the default stack size to 16 MiB and remove ensure_sufficient_stack - #160535
Conversation
|
Some changes occurred in match checking cc @Nadrieril Some changes occurred in match lowering cc @Nadrieril changes to the core type system cc @lcnr These commits modify the If this was unintentional then you should revert the changes before this PR is merged. The parser was modified, potentially altering the grammar of (stable) Rust cc @fmease Some changes occurred to the CTFE machinery Some changes occurred to MIR optimizations cc @rust-lang/wg-mir-opt Some changes occurred in exhaustiveness checking cc @Nadrieril |
|
rustbot has assigned @petrochenkov. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
Oh that pinged everyone, sorry. It does touch a lot of files but most of the +/- diff is whitespace changes. |
ensure_sufficient_stack
This comment has been minimized.
This comment has been minimized.
6f4f307 to
39e551e
Compare
This comment has been minimized.
This comment has been minimized.
39e551e to
5b3365e
Compare
|
The list of allowed third-party dependencies may have been modified! You must ensure that any new dependencies have compatible licenses before merging. cc @davidtwco, @BoxyUwU |
This comment has been minimized.
This comment has been minimized.
4b5f459 to
8f4397d
Compare
There was a problem hiding this comment.
This test is fairly recent but I'm not sure that this it is still useful. It's basically testing the use of stacker, which is obsolete now.
There was a problem hiding this comment.
I suspect that this test might start failing again with increased scale of the test (e.g. if N=8000 fails at 3MiB, then at N=45000 it would fail at 16MiB.) But maybe making the scale here large enough makes the code itself impractical in other ways? 🤷
There was a problem hiding this comment.
One thing I'm finding with these high recursion cases is that they start becoming very slow even before they approach the (new) stack limit. So we could increase the stack size further if there's a real world use case (which I don't see atm but not ruling out) but I think that might be sweeping the problem under the rug. I do feel that at the very least we should be warning about it if not treating it as a bug to be fixed.
8f4397d to
a4e65d7
Compare
This comment has been minimized.
This comment has been minimized.
| "windows_i686_msvc", | ||
| "windows_x86_64_gnu", | ||
| "windows_x86_64_gnullvm", | ||
| "windows_x86_64_msvc", |
|
This PR changes a file inside |
|
@bors try job=aarch64 |
This comment has been minimized.
This comment has been minimized.
|
@bors r=petrochenkov,oli-obk |
This comment has been minimized.
This comment has been minimized.
On 32-bit systems, 255 threads will use up the available address space.
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
|
@bors r=petrochenkov,oli-obk |
This comment has been minimized.
This comment has been minimized.
What is this?This is an experimental post-merge analysis report that shows differences in test outcomes between the merged PR and its parent PR.Comparing 969b803 (parent) -> 811367e (this PR) Test differencesShow 164 test diffsStage 1
Stage 2
Additionally, 160 doctest diffs were found. These are ignored, as they are noisy. Job group index
Test dashboardRun cargo run --manifest-path src/ci/citool/Cargo.toml -- \
test-dashboard 811367e98c08549865a32553076d617fb63154ef --output-dir test-dashboardAnd then open Job duration changes
How to interpret the job duration changes?Job durations can vary a lot, based on the actual runner instance |
|
Finished benchmarking commit (811367e): comparison URL. Overall result: ❌✅ regressions and improvements - please read:Our benchmarks found a performance regression caused by this PR. Next Steps:
@rustbot label: +perf-regression Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (primary -2.2%, secondary -1.1%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary -2.3%, secondary -1.7%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeThis perf run didn't have relevant results for this metric. Bootstrap: 458.441s -> 456.009s (-0.53%) |
View all comments
Tracking issue: #160275
Fixes #93237
Fixes #108499