Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 14bab2f4 authored by Chong Zhang's avatar Chong Zhang Committed by android-build-merger
Browse files

Merge "Fix meminfo accounting for visible apps" into nyc-dev

am: 505a8d9d

* commit '505a8d9d':
  Fix meminfo accounting for visible apps

Change-Id: Ia6e520b322f2c83842c7fe0c01d0b04e3629c275
parents 91af8661 505a8d9d
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -15456,8 +15456,9 @@ public final class ActivityManagerService extends ActivityManagerNative
                    }
                    for (int oomIndex=0; oomIndex<oomPss.length; oomIndex++) {
                        if (oomAdj <= DUMP_MEM_OOM_ADJ[oomIndex]
                                || oomIndex == (oomPss.length-1)) {
                        if (oomIndex == (oomPss.length - 1)
                                || (oomAdj >= DUMP_MEM_OOM_ADJ[oomIndex]
                                        && oomAdj < DUMP_MEM_OOM_ADJ[oomIndex + 1])) {
                            oomPss[oomIndex] += myTotalPss;
                            oomSwapPss[oomIndex] += myTotalSwapPss;
                            if (oomProcs[oomIndex] == null) {