Skip to content

Commit ddb1234

Browse files
authored
Rollup merge of #104537 - HintringerFabian:docs_default_min_stack_size, r=the8472
fix std::thread docs are unclear regarding stack sizes Improves the documentation about the default stack size of a spawned thread Fixes #102671
2 parents 911cbf8 + 0f93846 commit ddb1234

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

library/std/src/thread/mod.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,8 @@
124124
//!
125125
//! ## Stack size
126126
//!
127-
//! The default stack size for spawned threads is 2 MiB, though this particular stack size is
128-
//! subject to change in the future. There are two ways to manually specify the stack size for
129-
//! spawned threads:
127+
//! The default stack size is platform-dependent and subject to change. Currently it is 2MB on all
128+
//! Tier-1 platforms. There are two ways to manually specify the stack size for spawned threads:
130129
//!
131130
//! * Build the thread with [`Builder`] and pass the desired stack size to [`Builder::stack_size`].
132131
//! * Set the `RUST_MIN_STACK` environment variable to an integer representing the desired stack

0 commit comments

Comments
 (0)