slavapestov/factor — comment on commit 7def1be2f7711ae63a6f7f5bd643521606e8547a
File: vm/callstack.cpp line 38
By jckarter:

@slavapestov This works, aside from the callstack overflow and leaf procedure cases. In another commit I implemented the dumb leaf solution of letting the error handler return into the parent. I was looking into handling callstack overflows by unprotecting the guard page like we discussed, but I wasn't sure where the correct place was to reprotect the page. Would it work to have `general_error` reguard the page before dispatching to `unwind_native_frames`, or would `unwind_native_frames` have to reguard the page once it's unwound back into the proper callstack area to be fully general?