File tree 2 files changed +7
-3
lines changed
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
+
1
3
use crate :: io:: { self , Error , ErrorKind } ;
2
4
use libc:: { self , c_int, c_char} ;
3
5
use libc:: { RTP_ID } ;
4
6
use crate :: sys;
5
7
use crate :: sys:: cvt;
6
8
use crate :: sys:: process:: rtp;
7
9
use crate :: sys:: process:: process_common:: * ;
10
+ use crate :: sys_common:: thread;
8
11
9
12
////////////////////////////////////////////////////////////////////////////////
10
13
// Command
@@ -57,8 +60,7 @@ impl Command {
57
60
self . get_argv ( ) . as_ptr ( ) as * const _ , // argv
58
61
* sys:: os:: environ ( ) as * const * const c_char ,
59
62
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.
62
64
0 , // options
63
65
0 // task options
64
66
) ;
Original file line number Diff line number Diff line change
1
+ // Copyright (c) 2019 Wind River Systems, Inc.
2
+
1
3
use crate :: cmp;
2
4
use crate :: ffi:: CStr ;
3
5
use crate :: io;
@@ -8,7 +10,7 @@ use crate::time::Duration;
8
10
9
11
use crate :: sys_common:: thread:: * ;
10
12
11
- pub const DEFAULT_MIN_STACK_SIZE : usize = 2 * 1024 * 1024 ;
13
+ pub const DEFAULT_MIN_STACK_SIZE : usize = 0x40000 ; // 256K
12
14
13
15
pub struct Thread {
14
16
id : libc:: pthread_t ,
You can’t perform that action at this time.
0 commit comments