commit | 945c8d4e74755a33f9ad2ed339b477bd855cabb7 | [log] [tgz] |
---|---|---|
author | Li Li <dualli@google.com> | Wed May 19 22:11:11 2021 -0700 |
committer | Li Li <dualli@google.com> | Thu May 20 12:01:37 2021 -0700 |
tree | 3a7a07bfd28afcbaa88ad083a173fee4a208329d | |
parent | 86d3f3deaea4af79b77ecc7e2fbdcc6d10954279 [diff] |
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