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

Commit 5b474f61 authored by Jing Ji's avatar Jing Ji Committed by Automerger Merge Worker
Browse files

Merge "[BugFixed][OOM_ADJ] use max_adj to control process final adj" am: 2d361f63

parents 46de3c9e 2d361f63
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2457,7 +2457,7 @@ public class OomAdjuster {
        }

        state.setCurRawAdj(adj);

        adj = psr.modifyRawOomAdj(adj);
        if (adj > state.getMaxAdj()) {
            adj = state.getMaxAdj();
            if (adj <= ProcessList.PERCEPTIBLE_LOW_APP_ADJ) {
@@ -2487,7 +2487,7 @@ public class OomAdjuster {
        // it when computing the final cached adj later.  Note that we don't need to
        // worry about this for max adj above, since max adj will always be used to
        // keep it out of the cached vaues.
        state.setCurAdj(psr.modifyRawOomAdj(adj));
        state.setCurAdj(adj);
        state.setCurCapability(capability);
        state.setCurrentSchedulingGroup(schedGroup);
        state.setCurProcState(procState);