summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorJunyu Lai <junyulai@google.com>2021-07-30 02:31:26 +0000
committerJunyu Lai <junyulai@google.com>2021-07-30 05:59:21 +0000
commitf5dc09bc7c979a3c9003066bbe784a056e0bcf44 (patch)
tree427315b3524a2573e582364db58db97e62246301 /tools/aapt2/java/JavaClassGenerator_test.cpp
parentbf637195e9d38b5ef897086735dbe7e3c8b5ee5a (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 Original-Change: https://android-review.googlesource.com/1765686 Merged-In: Ie7694a63f5203ee7c83830ca13d97219b7949fd7 Change-Id: Ie7694a63f5203ee7c83830ca13d97219b7949fd7
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions