summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Jeff Sharkey <jsharkey@android.com> 2022-11-01 08:58:01 -0600
committer Jeff Sharkey <jsharkey@android.com> 2022-11-01 10:17:49 -0600
commitf0264d791f21b3c176749bb66934737ebcd2a22d (patch)
tree6b31f634b7298840c2c8bfec4cd0f5bce9504427 /libs/androidfw/StringPool.cpp
parent48ffbabcb973d6648e478482770eb98c18d7b3ae (diff)
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
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions