diff options
| author | 2022-12-09 02:22:04 +0000 | |
|---|---|---|
| committer | 2022-12-16 19:19:38 +0000 | |
| commit | 4ec0db91392892caf49effc9d8d90eb04221fa2f (patch) | |
| tree | 03a7702e88dda6d2c1a29a09e849ba9a92a68544 /libs/androidfw/ConfigDescription.cpp | |
| parent | d8aadbd70b82507a3b2bd8e5a136687ca7484831 (diff) | |
Identify and fix potential thread safety issues in SplitController
1) Went through SplitController call paths
2) Some methods require locks and were not annotated. Checked the call
paths for these methods, ensured callers had acquired the lock
somewhere up the chain, and added GuardedBy to these methods
3) Fixed unsafe area(s):
A) onStartActivityResult accesses #getContainer, which iterates
through mTaskContainers, which requires a lock. Updated the
onStartActivityResult block to use a lock
Bug: 242647030
Test: make androidx.window.extensions RUN_ERROR_PRONE=true
check warnings
Test: Smoke test with Jetpack WindowManager Demos apk
Change-Id: I1099cf76f88e49c706b65e394afbb82dd4a1bb99
Diffstat (limited to 'libs/androidfw/ConfigDescription.cpp')
0 files changed, 0 insertions, 0 deletions