diff options
author | Ruchir Rastogi <ruchirr@google.com> | 2020-06-01 10:43:31 -0700 |
---|---|---|
committer | Ruchir Rastogi <ruchirr@google.com> | 2020-06-08 15:47:05 -0700 |
commit | bba70a6065ebf7d8f5ce35f697afc3e72a53f094 (patch) | |
tree | 35132696342cc57a63bcf443abfc485615ea294a /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | ca62fc416218a8993d3e374d6f11839d6e0a2a01 (diff) |
Make pullers in StatsPullAtomService thread-safe
If statsd times out on a puller before it finishes and then calls
another puller, it is possible for pullers to execute concurrently,
necessitating proper synchronization.
We guard each puller (or a group of pullers that share member variables)
with a lock to fix the synchronizatino issue. This is overly
pessimistic, but ensures correctness.
Test: m
Test: atest CtsStatsdHostTestCases
Bug: 157906917
Change-Id: Ib050b967f0a5ee6936d3a0a384670d5efb331b72
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions