diff options
author | Chenbo Feng <fengc@google.com> | 2019-04-11 18:44:45 -0700 |
---|---|---|
committer | Lorenzo Colitti <lorenzo@google.com> | 2019-04-23 14:21:05 +0000 |
commit | bce7364aafd6be4269f9be5f6acfd59cdb80a243 (patch) | |
tree | afdb1cbb5fe1c3529a883b00908e1b46020d28f0 /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | be0106abced580a34ea89d0484b2851d0b73065c (diff) |
Add a lock to protect persistent stats snapshot
Since the network stats could be polled from multiple services at
runtime, it is not thread safe for networkStatsFactory to hold a
persistent stats snapshot without any protection. Use a internal lock to
prevent concurrent modification on mPersistentSnapshot to fix the
problem.
Bug: 124764595
Test: android.app.usage.cts.NetworkUsageStatsTest
android.net.cts.TrafficStatsTest
Change-Id: I73851336452110afb74d6dd1ca5e50047d5b3d4a
Merged-In: I73851336452110afb74d6dd1ca5e50047d5b3d4a
Merged-In: I22afb46f17697e8b6359d4f593802e0f4b95db8b
(cherry picked from commit 25243b4eb93c234412a35f9e5d9f1649f8964f83)
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions