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

Commit 2d18c60a authored by Dianne Hackborn's avatar Dianne Hackborn Committed by android code review
Browse files

Merge "Performance: Activity manager perf unnecessary recalc of oom_adj"

parents c9aa32e9 90f9e313
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1757,7 +1757,7 @@ public final class ActivityManagerService extends ActivityManagerNative
                if (cr.binding != null && cr.binding.service != null
                        && cr.binding.service.app != null
                        && cr.binding.service.app.lruSeq != mLruSeq) {
                    updateLruProcessInternalLocked(cr.binding.service.app, oomAdj,
                    updateLruProcessInternalLocked(cr.binding.service.app, false,
                            updateActivityTime, i+1);
                }
            }
@@ -1765,7 +1765,7 @@ public final class ActivityManagerService extends ActivityManagerNative
        if (app.conProviders.size() > 0) {
            for (ContentProviderRecord cpr : app.conProviders.keySet()) {
                if (cpr.proc != null && cpr.proc.lruSeq != mLruSeq) {
                    updateLruProcessInternalLocked(cpr.proc, oomAdj,
                    updateLruProcessInternalLocked(cpr.proc, false,
                            updateActivityTime, i+1);
                }
            }