File tree 2 files changed +1
-13
lines changed
2 files changed +1
-13
lines changed Original file line number Diff line number Diff line change 1
1
#![ cfg_attr( test, allow( dead_code) ) ]
2
2
3
- pub struct Handler ;
4
-
5
- impl Handler {
6
- pub unsafe fn new ( ) -> Handler {
7
- Handler
8
- }
9
- }
10
-
11
3
pub unsafe fn init ( ) { }
12
4
13
5
pub unsafe fn cleanup ( ) { }
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ use crate::io;
4
4
use crate :: mem;
5
5
use crate :: ptr;
6
6
use crate :: sys:: cloudabi:: abi;
7
- use crate :: sys:: stack_overflow;
8
7
use crate :: sys:: time:: checked_dur2intervals;
9
8
use crate :: time:: Duration ;
10
9
@@ -47,10 +46,7 @@ impl Thread {
47
46
48
47
extern "C" fn thread_start ( main : * mut libc:: c_void ) -> * mut libc:: c_void {
49
48
unsafe {
50
- // Next, set up our stack overflow handler which may get triggered if we run
51
- // out of stack.
52
- let _handler = stack_overflow:: Handler :: new ( ) ;
53
- // Finally, let's run some code.
49
+ // Let's run some code.
54
50
Box :: from_raw ( main as * mut Box < dyn FnOnce ( ) > ) ( ) ;
55
51
}
56
52
ptr:: null_mut ( )
You can’t perform that action at this time.
0 commit comments