Skip to content

Commit

Permalink
Rollup merge of #104659 - tshepang:reflow, r=workingjubilee
Browse files Browse the repository at this point in the history
reflow the stack size story
  • Loading branch information
Dylan-DPC authored Feb 19, 2023
2 parents fcdbd1c + a5732fd commit 47ec320
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions library/std/src/thread/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,10 @@
//!
//! ## Stack size
//!
//! 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 are two ways to manually specify the stack size for spawned threads:
//!
//! * Build the thread with [`Builder`] and pass the desired stack size to [`Builder::stack_size`].
//! * Set the `RUST_MIN_STACK` environment variable to an integer representing the desired stack
Expand Down

0 comments on commit 47ec320

Please sign in to comment.