summaryrefslogtreecommitdiff
path: root/libs/androidfw/AssetsProvider.cpp
diff options
context:
space:
mode:
author Jeff Sharkey <jsharkey@android.com> 2022-10-24 08:46:41 -0600
committer Jeff Sharkey <jsharkey@android.com> 2022-10-24 17:15:07 -0600
commit17814cc1831f86ac175af8ed9f1871ae81bcbb10 (patch)
treeeb3c037bfb71d464022febc19fbd6a0605e6566e /libs/androidfw/AssetsProvider.cpp
parent2d4f558d57cf343e059c8174ba6482558bcab493 (diff)
Apply negative delay to "urgent" broadcasts.
When choosing which "runnable" process to promote into a "running" slot, we currently use a single scoring dimension of a "runnable at" timestamp, and always start with the longest-waiting process. However, in the case of a process with urgent broadcasts, we could still end up waiting behind many other non-urgent processes that just happened to enqueue themselves earlier. (This is particularly evident with BOOT_COMPLETED broadcasts.) Future changes will improve execution and starvation guarantees in this area, such as by reserving certain "runnable" slots for processes with urgent work. This change also improves test flakiness by treating broadcasts sent from the shell as if the sender was "instrumented", since many tests rely on sending broadcasts through the shell. Bug: 253906105 Test: atest FrameworksMockingServicesTests:BroadcastRecordTest Test: atest FrameworksMockingServicesTests:BroadcastQueueTest Test: atest FrameworksMockingServicesTests:BroadcastQueueModernImplTest Change-Id: I12f49d4135d3cab18dcadb42f37a9367e8638585
Diffstat (limited to 'libs/androidfw/AssetsProvider.cpp')
0 files changed, 0 insertions, 0 deletions