File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1+ // Copyright (c) 2019 Wind River Systems, Inc.
2+
13use crate :: io:: { self , Error , ErrorKind } ;
24use libc:: { self , c_int, c_char} ;
35use libc:: { RTP_ID } ;
46use crate :: sys;
57use crate :: sys:: cvt;
68use crate :: sys:: process:: rtp;
79use crate :: sys:: process:: process_common:: * ;
10+ use crate :: sys_common:: thread;
811
912////////////////////////////////////////////////////////////////////////////////
1013// Command
@@ -57,8 +60,7 @@ impl Command {
5760 self . get_argv ( ) . as_ptr ( ) as * const _ , // argv
5861 * sys:: os:: environ ( ) as * const * const c_char ,
5962 100 as c_int , // initial priority
60- 0x16000 , // initial stack size. 0 defaults
61- // to 0x4000 in 32 bit and 0x8000 in 64 bit
63+ thread:: min_stack ( ) , // initial stack size.
6264 0 , // options
6365 0 // task options
6466 ) ;
Original file line number Diff line number Diff line change 1+ // Copyright (c) 2019 Wind River Systems, Inc.
2+
13use crate :: cmp;
24use crate :: ffi:: CStr ;
35use crate :: io;
@@ -8,7 +10,7 @@ use crate::time::Duration;
810
911use crate :: sys_common:: thread:: * ;
1012
11- pub const DEFAULT_MIN_STACK_SIZE : usize = 2 * 1024 * 1024 ;
13+ pub const DEFAULT_MIN_STACK_SIZE : usize = 0x40000 ; // 256K
1214
1315pub struct Thread {
1416 id : libc:: pthread_t ,
You can’t perform that action at this time.
0 commit comments