summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/AnnotationProcessor_test.cpp
diff options
context:
space:
mode:
authorChristopher Tate <ctate@google.com>2017-09-27 15:39:54 -0700
committerChris Tate <ctate@android.com>2017-10-02 20:15:18 +0000
commit2f87cb2d4a2417a70486b117d57d7547d4605a58 (patch)
tree600ef3c21c33c08e4c7652ed4197f57ffb75f8d9 /tools/aapt2/java/AnnotationProcessor_test.cpp
parent8f22de0e7f1c84c3f9e4ca55e6b2ad033ef421de (diff)
Reduce lock interactions in backup transport management
1. process package update broadcasts on our background thread rather than on the main looper thread 2. don't synchronize unnecessarily around access to simple transport metadata We mustn't block the main looper thread for anything that might wind up interlocked with calls to the transport, because those might take arbitrary amounts of time. We were previously entering such an implicitly interlocked code path during package-changed broadcast handling, and in pathological cases were causing the watchdog to restart the system. This situation is addressed in a couple of ways: first, by no longer performing package-update work on the main looper thread at all; and second, by eliminating lock reliance entirely from data-access paths that don't actually need it. Bug: 65438129 Bug: 64133971 Test: manual + CTS Change-Id: I361ad4a0729f319db7339bd341a6d33aa3b64fed Merged-In: I361ad4a0729f319db7339bd341a6d33aa3b64fed
Diffstat (limited to 'tools/aapt2/java/AnnotationProcessor_test.cpp')
0 files changed, 0 insertions, 0 deletions