diff options
| author | 2023-05-03 14:06:07 -0700 | |
|---|---|---|
| committer | 2023-05-25 15:42:58 -0700 | |
| commit | e76ef0bd24ddb12979610453625ade2adf57b3d5 (patch) | |
| tree | b3046b157cdbb038a4f36d63d60ad11ed5c0c42a /libs/androidfw/FileStream.cpp | |
| parent | 429962dd902761f4fd9f1be5ebc006c451c3fa6a (diff) | |
Fix setAttachingSchedGroupLSP() to support use_fifo_ui
The method added in aosp/1249555 ("Start process of next activity with
top priority in advance") to set the priority of the newly-launched top
app's UI thread doesn't handle the use_fifo_ui=1 case.
By setting mSetSchedGroup it also prevents subsequent applyOomAdjLSP()
calls from fixing the priority, so on devices with the sys.use_fifo_ui
sysprop set, main thread may not actually use SCHED_FIFO. This is an
issue mainly for the initial launch of an app -- once it's moved to
another sched group and then back, the priority is adjusted correctly.
Bug: 284355269
Test: set sys.use_fifo_ui, start a new app, and check thread priorities
with `ps -lT <pid>`
Signed-off-by: Tomislav Novak <tnovak@meta.com>
Change-Id: Ic8afc2eb054717018d227263a93d9fcc25bfa180
Merged-In: Ic8afc2eb054717018d227263a93d9fcc25bfa180
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions