-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert upcalls to core Rust functions #2861
Comments
Probably upcall_call_on_c_stack/call_on_rust_stack needs to remain a native function, same for upcall_new_stack/del_stack (which are not called by generated code but my __morestack). |
Actually, upcall_call_on_x_stack should be fine as a rust functions. it should just be the upcalls called by __morestack that need to be special. |
We can't throw an exception from inside a landing pad without corrupting the exception handler, so we have no hope of dealing with these exceptions anyway. See: http://llvm.org/docs/ExceptionHandling.html#cleanups Part of rust-lang#2861.
Agree, properly tagged and milestoned as of 2013-06-05. |
@brson is this still relevant? |
@cmr Pretty much obsolete. |
The main motivation is that the new failure code is written in Rust so calling it directly makes more sense than indirecting through native runtime code.
This also lets us to have fewer stack-switching mechanisms as upcalls are dealt with differently than other foreign functions.
The text was updated successfully, but these errors were encountered: