Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4b428bea authored by Lee Shombert's avatar Lee Shombert
Browse files

Fix deadlock in binder death handling

CallbackRecord.binderDied() triggers a new thread that tries to lock
CallbackRecord.mCallbacks.  Thus, binderDied() may not be called while
holding mCallbacks.

This change moves the exception handler for RemoteException
(indicating that the remote end has died) out of synchronization
blocks on mCallbacks.

Flag: com.android.server.am.defer_display_events_when_frozen
Bug: 388848221
Test: atest
 * DisplayServiceTests
 * CtsDisplayTestCases
Change-Id: Ib4a62ccc99725eb0c8f97ff2934fd19fc22417d3
parent e302462c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment