about summary refs log tree commit diff
path: root/src/libstd/thread
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-07-21 04:49:00 +0000
committerbors <bors@rust-lang.org>2017-07-21 04:49:00 +0000
commitd361efac2639fa9dd7f6195e4276a728b8875d7a (patch)
tree30994df2e955eb884b436abbbbc07760e0668818 /src/libstd/thread
parente3c8433ebb4a1acf125cae34ebd910869c894ebd (diff)
parent8416713240e11e898872f5028f927997f3754696 (diff)
downloadrust-d361efac2639fa9dd7f6195e4276a728b8875d7a.tar.gz
rust-d361efac2639fa9dd7f6195e4276a728b8875d7a.zip
Auto merge of #43318 - jhjourdan:jh/fix_weak_cound_MAX, r=alexcrichton
Fix in weak_count in Arc in the case the weak count is locked.

In the case the weak count was locked, the weak_count function could
return usize::MAX. We need to test this condition manually.
Diffstat (limited to 'src/libstd/thread')
0 files changed, 0 insertions, 0 deletions