Skip to content

std: two small improvements to UNIX stack overflow logic - #166195

Merged
rust-bors[bot] merged 2 commits into
rust-lang:mainfrom
joboet:stack_overflow_steps
Nov 20, 2026
Merged

rust-bors[bot] merged 2 commits into
rust-lang:mainfrom
joboet:stack_overflow_steps

Conversation

@joboet

@joboet joboet commented Nov 19, 2026

Copy link
Copy Markdown
Member

See the individual commits...

The second commit should have a big impact on the binary size of programs compiled with panic = "immediate-abort", as it enables the removal of the BTreeMap code used to store thread info.

@rustbot rustbot added O-unix Operating system: Unix-like S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Nov 19, 2026
@rustbot

rustbot commented Nov 19, 2026

Copy link
Copy Markdown
Collaborator

r? @JohnTitor

rustbot has assigned @JohnTitor.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: @ChrisDenton, libs
  • @ChrisDenton, libs expanded to 38 candidates
  • Random selection from JohnTitor, Mark-Simulacrum, clarfonthey, maxdexh

@joboet joboet added A-runtime Area: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflows A-stack-probe Area: Stack probing and guard pages labels Nov 19, 2026

@JohnTitor JohnTitor left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense!

@bors r+ rollup=iffy

(merging solely seems safer for bisecting)

View changes since this review

@rust-bors

rust-bors Bot commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 1130ac7 has been approved by JohnTitor

It is now in the queue for this repository.

@rust-bors rust-bors Bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Nov 20, 2026
rust-bors Bot pushed a commit that referenced this pull request Nov 20, 2026
…uwer

Rollup of 4 pull requests

Successful merges:

 - #166195 (std: two small improvements to UNIX stack overflow logic)
 - #165707 (bootstrap: Make low priority the default)
 - #166160 (refactor CTFE-specific intrinsics to different file)
 - #166260 ([PAC] Ignore run-make tests that expect static linking on `pauthtest`)
rust-bors Bot pushed a commit that referenced this pull request Nov 20, 2026
Rollup merge of #166195 - joboet:stack_overflow_steps, r=JohnTitor

std: two small improvements to UNIX stack overflow logic

See the individual commits...

The second commit should have a big impact on the binary size of programs compiled with `panic = "immediate-abort"`, as it enables the removal of the `BTreeMap` code used to store thread info.
@rust-bors
rust-bors Bot merged commit b808784 into rust-lang:main Nov 20, 2026
14 checks passed
@rustbot rustbot added this to the 1.102.0 milestone Nov 20, 2026
@rust-timer

Copy link
Copy Markdown

Note

This PR was benchmarked as part of triage of its containing rollup: triage URL.

Finished benchmarking commit (f5c55fb): comparison URL.

Overall result: ❌✅ regressions and improvements - please read:

Our benchmarks found a performance regression caused by this PR.
This might be an actual regression, but it can also be just noise.

Next Steps:

  • If the regression was expected or you think it can be justified,
    please write a comment with sufficient written justification, and add
    @rustbot label: +perf-regression-triaged to it, to mark the regression as triaged.
  • If you think that you know of a way to resolve the regression, try to create
    a new PR with a fix for the regression.
  • If you do not understand the regression or you think that it is just noise,
    you can ask the @rust-lang/wg-compiler-performance working group for help (members of this group
    were already notified of this PR).

@rustbot label: +perf-regression
cc @rust-lang/wg-compiler-performance

Instruction count

Our most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
0.1% [0.1%, 0.1%] 3
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-0.7% [-1.1%, -0.0%] 9
All ❌✅ (primary) - - 0

Max RSS (memory usage)

This perf run didn't have relevant results for this metric.

Cycles

Results (secondary 1.7%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
6.4% [4.6%, 8.9%] 4
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-4.6% [-6.6%, -2.5%] 3
All ❌✅ (primary) - - 0

Binary size

This perf run didn't have relevant results for this metric.

Artifact size: 406.02 MiB -> 405.37 MiB (-0.16%)

@rustbot rustbot added the perf-regression Performance regression. label Nov 20, 2026
github-actions Bot pushed a commit to rust-lang/rustc-dev-guide that referenced this pull request Nov 23, 2026
…uwer

Rollup of 4 pull requests

Successful merges:

 - rust-lang/rust#166195 (std: two small improvements to UNIX stack overflow logic)
 - rust-lang/rust#165707 (bootstrap: Make low priority the default)
 - rust-lang/rust#166160 (refactor CTFE-specific intrinsics to different file)
 - rust-lang/rust#166260 ([PAC] Ignore run-make tests that expect static linking on `pauthtest`)
@panstromek

Copy link
Copy Markdown
Contributor

perf triage:

include-blob regression is noise.

@rustbot label: +perf-regression-triaged

@rustbot rustbot added the perf-regression-triaged The performance regression has been triaged. label Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-runtime Area: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflows A-stack-probe Area: Stack probing and guard pages O-unix Operating system: Unix-like perf-regression Performance regression. perf-regression-triaged The performance regression has been triaged. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants