commit | d6662ece0d2098d71d0ebe745d4019b248c906a1 | [log] [tgz] |
---|---|---|
author | Yabin Cui <yabinc@google.com> | Wed Aug 26 11:44:16 2015 -0700 |
committer | Yabin Cui <yabinc@google.com> | Wed Aug 26 15:22:56 2015 -0700 |
tree | 08369f1b48102247ab2c13c12a49c3f026238c22 | |
parent | 9e0f034f7f8bf2a30288f93cd764b4a2d1bf004f [diff] |
adb: fix a fake data race on transport:kick reported by tsan. It is reported by tsan as a double checked locking. But I think it is not a real data race. Because I think the old code is able to make sure t->kick() is only called once, and the caller of kick_transport is not relying on the side-effect of calling t->kick(). But as it is not perf critical, I don't mind breaking the double checked locking pattern. Bug: 23385662 Change-Id: Ie3597dd56bb514117c3865d2afcfd7c115731a78