]> git.lizzy.rs Git - rust.git/blobdiff - src/libstd/sys/unix/thread.rs
Move default stack min size to thread implementations
[rust.git] / src / libstd / sys / unix / thread.rs
index 60bce7924cdd8ee1ecfb82871ea303952a36335f..6c4a332429646be75c156884d409d8c090c7bdb3 100644 (file)
 
 use sys_common::thread::*;
 
+#[cfg(not(target_os = "l4re"))]
+pub const DEFAULT_MIN_STACK_SIZE: usize = 2 * 1024 * 1024;
+#[cfg(target_os = "l4re")]
+pub const DEFAULT_MIN_STACK_SIZE: usize = 1024 * 1024;
+
 pub struct Thread {
     id: libc::pthread_t,
 }