summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorHugo Benichi <hugobenichi@google.com>2016-04-27 16:47:55 +0900
committerHugo Benichi <hugobenichi@google.com>2016-04-27 16:47:55 +0900
commit9b907e440cdff222481abf16def6e03870678c20 (patch)
treeb622e55b19d1b200e4850459016e71525bd3cede /tools/aapt2/java/JavaClassGenerator_test.cpp
parent502094ccbaa8d1f0b0dea9190ca83ea6a9519e34 (diff)
Fixes 2 race conditions in MetricsLoggerService
- in dump, the array of pending intent was iterated without locking against logEvent. This can throw a ConcurrentModificationException if at the same time logEvent sends intents and remove them from the array. - in getEvents, the returned reference was reading the reference of the last event after releasing the lock on mEvents, which can cause callers to miss events if at the same time logEvent is called and mLastEventReference is incremented. Bug: 28204408 Change-Id: I7ff21d4d2c0b02d8e0b47310430dff7d8a87f0bf
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions