]> git.lizzy.rs Git - rust.git/commit
Fix in weak_count in Arc.
authorJacques-Henri Jourdan <jacques-henri.jourdan@normalesup.org>
Tue, 18 Jul 2017 17:31:22 +0000 (19:31 +0200)
committerJacques-Henri Jourdan <jacques-henri.jourdan@normalesup.org>
Tue, 18 Jul 2017 17:39:30 +0000 (19:39 +0200)
commit49edaf14fd1ef0c190e67998ad299db67d19b739
treea8ca9d9cf5e115b43f23692c7f3ecddf7006e155
parent83c659ef655b1f740777f83eb415fd7ebe5a3fe5
Fix in weak_count in Arc.

In the case the weak count was locked, the weak_count function could
return usize::MAX. We need to test this condition manually.
src/liballoc/arc.rs