Skip to content
Commit 819b63c6 authored by Riddle Hsu's avatar Riddle Hsu
Browse files

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
parent 99db8bd9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment