diff options
author | Chenbo Feng <fengc@google.com> | 2019-02-27 19:07:39 -0800 |
---|---|---|
committer | Lorenzo Colitti <lorenzo@google.com> | 2019-04-23 14:21:32 +0000 |
commit | db910397907965142667ef60f34a242861606abd (patch) | |
tree | d59fac8c3403432a71a17a4e65ed2c513d23f6e6 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | bce7364aafd6be4269f9be5f6acfd59cdb80a243 (diff) |
Ask netd to swap stats map before reading
To avoid protentail race problem between netd and system_server when
reading the network stats map. Always inform netd before reading the
stats and let netd to do a swap between active stats map and inactive
stats map. So the system_server can safely remove the stats after
reading.
Bug: 126620214
Test: android.app.usage.cts.NetworkUsageStatsTest
android.net.cts.TrafficStatsTest
Change-Id: I8fa37c26bec23ffca0b29b679e72ba1189f557f1
Merged-In: I8fa37c26bec23ffca0b29b679e72ba1189f557f1
(cherry picked from commit f729cb5fd654a0f099128734f849800fde9ba525)
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions