Eliminate acquiring WM lock when bind/unbind service
There were lock contention between AM and WM when an activity binds/unbinds service from: - Associate the connection to the activity - Add connection - Remove connection when WM is running layout/animation or updating config. This change applies: - Use a separated lock to manage the connection. - Cache the visible state for BIND_ADJUST_WITH_ACTIVITY. to eliminate the lock contention. Bug: 263755904 Bug: 204870457 Test: ActivityRecordTests#testActivityServiceConnectionsHolder Change-Id: Id5b7862866180064cb8ec863cd9cd6ccebdaea1e
Loading
Please register or sign in to comment