diff options
| author | 2023-04-17 15:20:30 +0800 | |
|---|---|---|
| committer | 2023-04-18 05:15:18 +0000 | |
| commit | 78fe2d8e4207ba556d46290921235a5518a66e01 (patch) | |
| tree | a164cc9053d8101d0c4e4882059a41005f54385c /libs/androidfw/ApkParsing.cpp | |
| parent | 0bb91e1d18ee4857252fe61384c7aebb014747c9 (diff) | |
Invoke service connection consumer outside the object lock
The consumer may contain arbitrary operations which may
acquire the local lock again and lead to dead lock.
Currently forEachConnection is only called from
disconnectActivityFromServices which is very rare to be called
(activity destroyed without unbind service). So a local copy
should be fine.
Bug: 275277537
Test: atest ActivityRecordTests#testActivityServiceConnectionsHolder
Change-Id: If26a0cb9970cf5318cd0477adcc0fe07e98aaed9
Diffstat (limited to 'libs/androidfw/ApkParsing.cpp')
0 files changed, 0 insertions, 0 deletions