Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix use-after-free on panic during ArcWake::wake_by_ref
Wrap temporary `Arc<>`s in `ManuallyDrop` early instead of calling `forget()` later: that way even during unwinding for panics it doesn't drop the refcount it doesn't actually own. Also it means `wake_by_ref` doesn't need an unwind section anymore. Same thing in `increase_refcount` (although `Arc::clone` should only abort, not unwind).
- Loading branch information