commit | 14946edca3a2ddb89c7bb23eeb0d1d48dd59d243 | [log] [tgz] |
---|---|---|
author | Junyu Lai <junyulai@google.com> | Wed Jul 14 06:44:37 2021 +0000 |
committer | Junyu Lai <junyulai@google.com> | Mon Jul 26 09:16:35 2021 +0000 |
tree | d105c1d097d75b1bdfde0670ab78522cfc7c84f6 | |
parent | 35362a9dc157993c509a8beb68707b2ca0761ec5 [diff] |
Fix mMobileIfaces is not protected by lock Currently, mMobileIfaces is accessed from multiple threads, and should be protected from concurrent accessing. However, since the variable could be accessed frequently, holding the mStatsLock would make this be blocked by network stats I/O operations. Thus, protect the variable by making it volatile. Test: Wifi on/off stress test Bug: 192758557 Change-Id: Ie7694a63f5203ee7c83830ca13d97219b7949fd7