about summary refs log tree commit diff
path: root/src/libstd/sys/unix/thread.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstd/sys/unix/thread.rs')
-rw-r--r--src/libstd/sys/unix/thread.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/libstd/sys/unix/thread.rs b/src/libstd/sys/unix/thread.rs
index 67ecd4d9229..ea1bfbd9b7d 100644
--- a/src/libstd/sys/unix/thread.rs
+++ b/src/libstd/sys/unix/thread.rs
@@ -23,7 +23,6 @@ use ptr;
 use sys::os;
 use time::Duration;
 
-use sys_common::stack::RED_ZONE;
 use sys_common::thread::*;
 
 pub struct Thread {
@@ -43,8 +42,7 @@ impl Thread {
         let mut attr: libc::pthread_attr_t = mem::zeroed();
         assert_eq!(pthread_attr_init(&mut attr), 0);
 
-        // Reserve room for the red zone, the runtime's stack of last resort.
-        let stack_size = cmp::max(stack, RED_ZONE + min_stack_size(&attr));
+        let stack_size = cmp::max(stack, min_stack_size(&attr));
         match pthread_attr_setstacksize(&mut attr, stack_size as libc::size_t) {
             0 => {}
             n => {
@@ -72,7 +70,6 @@ impl Thread {
             Ok(Thread { id: native })
         };
 
-        #[no_stack_check]
         extern fn thread_start(main: *mut libc::c_void) -> *mut libc::c_void {
             unsafe { start_thread(main); }
             0 as *mut _