Skip to content

Commit

Permalink
Thread spawning: don't run min_stack if the user has specified stac…
Browse files Browse the repository at this point in the history
…k size.
  • Loading branch information
frewsxcv committed Aug 23, 2017
1 parent a24e0f2 commit 1d5ee63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/thread/mod.rs
Expand Up @@ -374,7 +374,7 @@ impl Builder {
{
let Builder { name, stack_size } = self;

let stack_size = stack_size.unwrap_or(util::min_stack());
let stack_size = stack_size.unwrap_or_else(util::min_stack);

let my_thread = Thread::new(name);
let their_thread = my_thread.clone();
Expand Down

0 comments on commit 1d5ee63

Please sign in to comment.