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

Skip to content
Commit f0264d79 authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

BroadcastQueue: post finishReceiver() as async.

In the typical case, the remote process calls back around to
finishReceiver() once it's finished.  In cases were we shortcutted
delivery, we had been calling finishReceiver() directly, but that
results in holding the AMS lock for a long period of time as we
recursively deliver the next pending broadcast.

This change adjusts that shortcutting behavior to post through a
message, so that we release the AMS lock, giving other pending
operations a chance to run.

Bug: 255936508
Test: ./frameworks/base/libs/hwui/tests/scripts/prep_generic.sh little && atest ActivityManagerPerfTests:BroadcastPerfTest
Change-Id: Ic7094df0a1d2aa1e2ac1e22c1fd711c245d8eb86
parent 48ffbabc
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