OSDN Git Service

Fix for incorrect cycle evaluation in computeOomAdj
authorAmith Yamasani <yamasani@google.com>
Mon, 9 Jul 2018 19:07:35 +0000 (12:07 -0700)
committerAmith Yamasani <yamasani@google.com>
Mon, 9 Jul 2018 19:14:17 +0000 (19:14 +0000)
commit8b2fb60f49558b8a9bd71becf71d8122439ca65e
tree5339688e968b27780774718077cfb2fdc69417a5
parentd2af61a1e8271cf7b413a515c333d6b2d3dcb6c4
Fix for incorrect cycle evaluation in computeOomAdj

Use the conservative value of adj and procstate if at least
one evaluation pass was completed, even if the value is not
final. The later iterations through the procs that have
cycles will elevate the apps if necessary. Otherwise the
dependencies will just get stuck in a low state.

Bug: 79643956
Test: Manual test of connecting to AA and turning off screen
      atest CtsAppTestCases:ActivityManagerProcessStateTest

Change-Id: If520eb239935782e2487b16e8bb650ded775f184
services/core/java/com/android/server/am/ActivityManagerService.java