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

Commit 3b6ccf4c authored by Rajeev Kumar's avatar Rajeev Kumar
Browse files

Use curAdj in place of maxAdj to correctly record oom_score while collecting ProcessMemoryState.

Bug: 119902523
Test: Manual test using adb shell cmd stats pull-source 10013
Change-Id: Ibdebd25057a45dd6986240b6751b49fdcde39dee
parent 4bcc707b
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -18935,7 +18935,7 @@ public class ActivityManagerService extends IActivityManager.Stub
                    ProcessMemoryState processMemoryState =
                    ProcessMemoryState processMemoryState =
                            new ProcessMemoryState(uid,
                            new ProcessMemoryState(uid,
                                    r.processName,
                                    r.processName,
                                    r.maxAdj,
                                    r.curAdj,
                                    memoryStat.pgfault,
                                    memoryStat.pgfault,
                                    memoryStat.pgmajfault,
                                    memoryStat.pgmajfault,
                                    memoryStat.rssInBytes,
                                    memoryStat.rssInBytes,