From 1d5ee636d7409164a8c5df0f20a2c508449c672a Mon Sep 17 00:00:00 2001 From: Corey Farwell Date: Tue, 22 Aug 2017 18:03:09 -0400 Subject: [PATCH] Thread spawning: don't run `min_stack` if the user has specified stack size. --- src/libstd/thread/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstd/thread/mod.rs b/src/libstd/thread/mod.rs index 83feb595bce51..ee103c803f542 100644 --- a/src/libstd/thread/mod.rs +++ b/src/libstd/thread/mod.rs @@ -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();