Skip to content
Commit e9781e62 authored by Zim's avatar Zim
Browse files

Skip computing proc states during app initialization

Now that app initialization covers class loading, there can be
hundreds of milliseconds delay before a top app activity gets
scheduled to start. During this delay, computing proc states
overrides the top app special case set at attachApplication to
boost the sched group.

This is fixed with the following changes:
1. Skip computing proc states when the application hasn't finished
attach application
2. Trigger a proc state update immediately after scheduling
bindApplication. This ensures that the special cased proc state is
applied as soon as possible

Test: atest MockingOomAdjusterTests
Bug: 253908737
Change-Id: Iae30a508b8b079dc88d6d5ffa027b7d805fec9e4
parent 0683f76e
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