summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorChenbo Feng <fengc@google.com>2019-04-10 12:55:07 -0700
committerChenbo Feng <fengc@google.com>2019-04-10 12:59:18 -0700
commit8d2a88c50dcd6f629dbb54f2180e1114494e7da9 (patch)
treeb6f5c9cc60eec1167995e9aebe3601490648e8d5 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent5f8a630da7d5b308c0824a25f6fc1dd4c7552c9f (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: I22afb46f17697e8b6359d4f593802e0f4b95db8b
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions