Are we able to document the default stack size for threads? #43805
Labels
A-docs
Area: documentation for any part of the project, including the compiler, standard library, and tools
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
One can specify the stack size of a thread via
thread::Builder::stack_size
. If one does not use this method when building a thread, it uses some default value, which is specified inutil::min_stack
.It looks like
util::min_stack
looks at theRUST_MIN_STACK
env var and attempts to parse it into an integer. If it's not specified or can't parse, it falls back to 2MB.Should we update the thread documentation to mention what the default stack size is and mention that environment variable?
The text was updated successfully, but these errors were encountered: