Re:Stack unwinding in Rust
by veddan on Friday October 31, 2014 @05:52PM
(#8541285)
It's not just a matter of the compiler missing optimizations. Some (unsafe, low-level) algorithms have to be written differently (and less efficiently) because of the possibility of unwinding. Disallowed patterns typically look something like
If you unwind while the object is in an invalid state, and its destructor is called during unwinding, you can end up with undefined behavior.
[ Parent
| on HN ]
There are no comments on this comment yet.