File tree Expand file tree Collapse file tree 2 files changed +0
-12
lines changed Expand file tree Collapse file tree 2 files changed +0
-12
lines changed Original file line number Diff line number Diff line change 1
- pub struct Handler ;
2
-
3
- impl Handler {
4
- pub unsafe fn new ( ) -> Handler {
5
- Handler
6
- }
7
- }
8
-
9
1
#[ inline]
10
2
pub unsafe fn init ( ) { }
11
3
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ use crate::fmt;
5
5
use crate :: io;
6
6
use crate :: mem;
7
7
use crate :: sys:: hermit:: abi;
8
- use crate :: sys:: stack_overflow;
9
8
use crate :: time:: Duration ;
10
9
use core:: u32;
11
10
@@ -69,9 +68,6 @@ impl Thread {
69
68
70
69
extern "C" fn thread_start ( main : usize ) {
71
70
unsafe {
72
- // Next, set up our stack overflow handler which may get triggered if we run
73
- // out of stack.
74
- let _handler = stack_overflow:: Handler :: new ( ) ;
75
71
// Finally, let's run some code.
76
72
Box :: from_raw ( main as * mut Box < dyn FnOnce ( ) > ) ( ) ;
77
73
}
You can’t perform that action at this time.
0 commit comments