diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2020-07-05 16:07:32 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-05 16:07:32 -0700 |
| commit | aef2ca6681cb2d5fb9ae613df8e94ad906c05085 (patch) | |
| tree | 11eba59c14a893f5ef4da0dd779b5b1df106eec5 /src/libstd/sys/unix/process/process_unix.rs | |
| parent | 0eadeda94509ef8e15af539fb3ae771aa84c98ad (diff) | |
| parent | 8900502a887d98a8f5a6b8774f1c756e89d4c29f (diff) | |
| download | rust-aef2ca6681cb2d5fb9ae613df8e94ad906c05085.tar.gz rust-aef2ca6681cb2d5fb9ae613df8e94ad906c05085.zip | |
Rollup merge of #74025 - tmiasko:try-unwrap, r=Amanieu
Remove unnecessary release from Arc::try_unwrap The thread that recovers the unique access to Arc inner value (e.g., drop when ref-count strong reaches zero, successful try_unwrap), ensures that other operations on Arc inner value happened before by synchronizing with release operations performed when decrementing the reference counter. When try_unwrap succeeds, the current thread recovers the unique access to Arc inner value, so release is unnecessary. r? @Amanieu
Diffstat (limited to 'src/libstd/sys/unix/process/process_unix.rs')
0 files changed, 0 insertions, 0 deletions
