diff options
| author | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2020-07-04 00:00:00 +0000 |
|---|---|---|
| committer | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2020-07-04 11:40:27 +0200 |
| commit | 8900502a887d98a8f5a6b8774f1c756e89d4c29f (patch) | |
| tree | 26f0a63bf75ab8914f48e718c8cbab58f4cf07e7 /src/libstd/sys/unix/process/process_unix.rs | |
| parent | dbf3ae7c3beb5b493375bf76152e490b8cc81d1c (diff) | |
| download | rust-8900502a887d98a8f5a6b8774f1c756e89d4c29f.tar.gz rust-8900502a887d98a8f5a6b8774f1c756e89d4c29f.zip | |
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.
Diffstat (limited to 'src/libstd/sys/unix/process/process_unix.rs')
0 files changed, 0 insertions, 0 deletions
