Skip to content

Commit d512b22

Browse files
author
Vytautas Astrauskas
committedApr 3, 2020
Delete unnecessary stub stack overflow handler for cloudabi.
1 parent d637d6e commit d512b22

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
#![cfg_attr(test, allow(dead_code))]
22

3-
pub struct Handler;
4-
5-
impl Handler {
6-
pub unsafe fn new() -> Handler {
7-
Handler
8-
}
9-
}
10-
113
pub unsafe fn init() {}
124

135
pub unsafe fn cleanup() {}

‎src/libstd/sys/cloudabi/thread.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ use crate::io;
44
use crate::mem;
55
use crate::ptr;
66
use crate::sys::cloudabi::abi;
7-
use crate::sys::stack_overflow;
87
use crate::sys::time::checked_dur2intervals;
98
use crate::time::Duration;
109

@@ -47,10 +46,7 @@ impl Thread {
4746

4847
extern "C" fn thread_start(main: *mut libc::c_void) -> *mut libc::c_void {
4948
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.
5450
Box::from_raw(main as *mut Box<dyn FnOnce()>)();
5551
}
5652
ptr::null_mut()

0 commit comments

Comments
 (0)
Please sign in to comment.