#![cfg_attr(test, allow(dead_code))]
use crate::sys::c;
-use crate::sys_common::util::report_overflow;
+use crate::thread;
pub struct Handler;
let code = rec.ExceptionCode;
if code == c::EXCEPTION_STACK_OVERFLOW {
- report_overflow();
+ rtprintpanic!(
+ "\nthread '{}' has overflowed its stack\n",
+ thread::current().name().unwrap_or("<unknown>")
+ );
}
c::EXCEPTION_CONTINUE_SEARCH
}