Skip to content

Commit

Permalink
Delete unnecessary stub stack overflow handler for hermit.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vytautas Astrauskas committed Apr 3, 2020
1 parent 53aa5a1 commit d637d6e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
8 changes: 0 additions & 8 deletions src/libstd/sys/hermit/stack_overflow.rs
@@ -1,11 +1,3 @@
pub struct Handler;

impl Handler {
pub unsafe fn new() -> Handler {
Handler
}
}

#[inline]
pub unsafe fn init() {}

Expand Down
4 changes: 0 additions & 4 deletions src/libstd/sys/hermit/thread.rs
Expand Up @@ -5,7 +5,6 @@ use crate::fmt;
use crate::io;
use crate::mem;
use crate::sys::hermit::abi;
use crate::sys::stack_overflow;
use crate::time::Duration;
use core::u32;

Expand Down Expand Up @@ -69,9 +68,6 @@ impl Thread {

extern "C" fn thread_start(main: usize) {
unsafe {
// Next, set up our stack overflow handler which may get triggered if we run
// out of stack.
let _handler = stack_overflow::Handler::new();
// Finally, let's run some code.
Box::from_raw(main as *mut Box<dyn FnOnce()>)();
}
Expand Down

0 comments on commit d637d6e

Please sign in to comment.