Skip to content

Commit

Permalink
Rollup merge of #44054 - frewsxcv:frewsxcv-libstd-thread-unwrap-or-el…
Browse files Browse the repository at this point in the history
…se, r=sfackler

Thread spawning: don't run `min_stack` if the user has specified stack size.

None
  • Loading branch information
frewsxcv authored Aug 23, 2017
2 parents e9853c4 + 1d5ee63 commit 96efcdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/thread/mod.rs
Original file line number Diff line number Diff line change
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 96efcdf

Please sign in to comment.