From ee524875c13b894be8138ae36172a7b410583ecb Mon Sep 17 00:00:00 2001 From: Fenrir Date: Mon, 6 Mar 2017 23:18:03 -0700 Subject: [PATCH] Bump minimum thread stack size FBI uses 64kb threads so it must be legit --- ctr-std/src/sys/unix/thread.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctr-std/src/sys/unix/thread.rs b/ctr-std/src/sys/unix/thread.rs index f100f3d..572ac72 100644 --- a/ctr-std/src/sys/unix/thread.rs +++ b/ctr-std/src/sys/unix/thread.rs @@ -34,7 +34,7 @@ unsafe impl Sync for Thread {} impl Thread { pub unsafe fn new<'a>(stack: usize, p: Box) -> io::Result { let p = box p; - let stack_size = cmp::max(stack, 4 * 1024); + let stack_size = cmp::max(stack, 0x10000); // this retrieves the main thread's priority value. child threads need // to be spawned with a greater priority (smaller priority value) than