-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
reflow the stack size story #104659
reflow the stack size story #104659
Conversation
(rustbot has picked a reviewer for you, use r? to override) |
Hey! It looks like you've submitted a new PR for the library teams! If this PR contains changes to any Examples of
|
//! The default stack size is platform-dependent and subject to change. Currently it is 2MB on all | ||
//! Tier-1 platforms. There are two ways to manually specify the stack size for spawned threads: | ||
//! The default stack size is platform-dependent and subject to change. | ||
//! Currently, it is 2 MiB on all Tier-1 platforms. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it 2 MiB
or 2 MB
by default?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2 MiB seems correct
rust/library/std/src/sys/unix/thread.rs
Line 15 in e11cb36
pub const DEFAULT_MIN_STACK_SIZE: usize = 2 * 1024 * 1024; |
pub const DEFAULT_MIN_STACK_SIZE: usize = 2 * 1024 * 1024; |
friendly ping |
@bors r+ rollup |
Rollup of 7 pull requests Successful merges: - rust-lang#104659 (reflow the stack size story) - rust-lang#106933 (Update documentation of select_nth_unstable and select_nth_unstable_by to state O(n^2) complexity) - rust-lang#107783 (rustdoc: simplify DOM for `.item-table`) - rust-lang#107951 (resolve: Fix doc links referring to other crates when documenting proc macro crates directly) - rust-lang#108130 ("Basic usage" is redundant for there is just one example) - rust-lang#108146 (rustdoc: hide `reference` methods in search index) - rust-lang#108189 (Fix some more `non_lifetime_binders` stuff with higher-ranked trait bounds) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
No description provided.