Skip to content
Commit 945c8d4e authored by Li Li's avatar Li Li
Browse files

Fix potential freezer thrashing

Currently a pending DO_FREEZE message stays in the message queue until
AMS tries to actually freeze it. If the OOM_ADJ happens to swing back
and forth, the app might be frozen and then unfrozen quickly. Fix the
issue by removing the pending DO_FREEZE message ASAP.

Bug: 188739027
Test: Move an app to foreground, its pending freeze status is cleared.
Change-Id: I369710d408e1d81bc169a620543909cb4ae6edf7
parent 86d3f3de
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